[PATCH] D35735: [ubsan] Null-check pointers in -fsanitize=vptr (PR33881)

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 21 15:26:59 PDT 2017


aprantl added inline comments.


================
Comment at: test/CodeGenCXX/ubsan-devirtualized-calls.cpp:1
-// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -fsanitize=vptr %s -o - | FileCheck %s
+// REQUIRES: asserts
+// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -fsanitize=null,vptr %s -o - | FileCheck %s
----------------
Perhaps match for the labels instead of restricting to assert only?


https://reviews.llvm.org/D35735





More information about the cfe-commits mailing list