[PATCH] D114421: [asan] Add support for disable_sanitizer_instrumentation attribute

Evgenii Stepanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 2 14:12:10 PST 2021


eugenis accepted this revision.
eugenis added a comment.

LGTM



================
Comment at: clang/test/CodeGen/asan-globals.cpp:62
 // CHECK: ![[ATTR_GLOBAL]] = !{{{.*}}, null, null, i1 false, i1 true}
+// CHECK: ![[DISABLE_INSTR_GLOBAL]] = !{{{.*}}, null, null, i1 false, i1 true}
 // CHECK: ![[BLACKLISTED_GLOBAL]] = !{{{.*}}, null, null, i1 false, i1 true}
----------------
Does this test rely on the metadata being in the same order as the global declarations in the source?  Feels brittle and hard to understand - could you check if the regexps could be made more precise?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114421/new/

https://reviews.llvm.org/D114421



More information about the cfe-commits mailing list