diff options
author | Will Dietz <wdietz2@illinois.edu> | 2012-12-02 19:50:33 +0000 |
---|---|---|
committer | Will Dietz <wdietz2@illinois.edu> | 2012-12-02 19:50:33 +0000 |
commit | ad95481b2769ad61f23afc5e2c31f11c66090657 (patch) | |
tree | 1c675b6060d5bc957297d24fe7b23763cfc227ec /test/CodeGenCXX/catch-undef-behavior.cpp | |
parent | c2b914fb6fed213a7e7d9847e543f1e7f94d852d (diff) |
[ubsan] Add flag to enable recovery from checks when possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/catch-undef-behavior.cpp')
-rw-r--r-- | test/CodeGenCXX/catch-undef-behavior.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/CodeGenCXX/catch-undef-behavior.cpp b/test/CodeGenCXX/catch-undef-behavior.cpp index 9c2985c198..86a306daf5 100644 --- a/test/CodeGenCXX/catch-undef-behavior.cpp +++ b/test/CodeGenCXX/catch-undef-behavior.cpp @@ -69,7 +69,9 @@ void member_access(S *p) { // CHECK-NEXT: icmp eq i64 %[[CACHEVAL]], %[[HASH]] // CHECK-NEXT: br i1 - // CHECK: call void @__ubsan_handle_dynamic_type_cache_miss({{.*}}, i64 %{{.*}}, i64 %[[HASH]]) + // CHECK: call void @__ubsan_handle_dynamic_type_cache_miss_abort({{.*}}, i64 %{{.*}}, i64 %[[HASH]]) + // CHECK-NOT: unreachable + // CHECK: {{.*}}: // (2) Check 'p->b' is appropriately sized and aligned for a load. @@ -102,7 +104,9 @@ void member_access(S *p) { // [...] // CHECK: getelementptr inbounds [128 x i64]* @__ubsan_vptr_type_cache, i32 0, i64 % // CHECK: br i1 - // CHECK: call void @__ubsan_handle_dynamic_type_cache_miss({{.*}}, i64 %{{.*}}, i64 %{{.*}}) + // CHECK: call void @__ubsan_handle_dynamic_type_cache_miss_abort({{.*}}, i64 %{{.*}}, i64 %{{.*}}) + // CHECK-NOT: unreachable + // CHECK: {{.*}}: k = p->f(); } |