llvm-project/clang/test/CodeGen/cfguardtable.c
Hans Wennborg a912e3e6be clang-cl: Support /guard:cf,nochecks
This extension emits the guard cf table without inserting the
instrumentation. Currently that's what clang-cl does with /guard:cf
anyway, but this allows a user to request that explicitly.

Differential Revision: https://reviews.llvm.org/D50513

llvm-svn: 339420
2018-08-10 09:49:21 +00:00

7 lines
179 B
C

// RUN: %clang_cc1 -cfguard -emit-llvm %s -o - | FileCheck %s
void f() {}
// Check that the cfguardtable metadata flag gets set on the module.
// CHECK: !"cfguardtable", i32 1}