[PATCH] D26559: Insert a type check before reading vtable.

Ivan Krasin via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 15:33:06 PST 2016


krasin marked an inline comment as done.
krasin added inline comments.


================
Comment at: test/CodeGenCXX/ubsan-vtable-checks.cpp:23
+  // CHECK-NULL: [[UBSAN_CMP_RES:%[0-9]+]] = icmp ne %struct.T* %{{[_a-z0-9]+}}, null
+  // CHECK-NULL-NEXT: br i1 [[UBSAN_CMP_RES]], label %cont, label %handler.type_mismatch
+  // CHECK-NULL: call void @__ubsan_handle_type_mismatch_abort
----------------
pcc wrote:
> Does this test pass in a -Asserts build?
Fixed.


https://reviews.llvm.org/D26559





More information about the cfe-commits mailing list