mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 11:06:06 +00:00

This flag causes the compiler to emit bit set entries for functions as well as runtime bitset checks at indirect call sites. Depends on the new function bitset mechanism. Differential Revision: http://reviews.llvm.org/D11857 llvm-svn: 247238
13 lines
409 B
C++
13 lines
409 B
C++
// RUN: %clang_cc1 -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall | FileCheck --check-prefix=RTTI %s
|
|
// RUN: %clang_cc1 -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall -fno-rtti-data | FileCheck --check-prefix=NO-RTTI %s
|
|
|
|
struct A {
|
|
A();
|
|
virtual void f() {}
|
|
};
|
|
|
|
A::A() {}
|
|
|
|
// RTTI: !{!"?AUA@@", [2 x i8*]* {{.*}}, i64 8}
|
|
// NO-RTTI: !{!"?AUA@@", [1 x i8*]* {{.*}}, i64 0}
|