[PATCH] Don't instrument UBSan-generated code with ASan.

Alexey Samsonov vonosmas at gmail.com
Wed Jul 16 18:25:38 PDT 2014


================
Comment at: tools/clang/lib/CodeGen/CodeGenFunction.cpp:1660
@@ +1659,3 @@
+    I->setMetadata(
+        CGM.getModule().getMDKindID("ubsan"),
+        llvm::MDNode::get(CGM.getLLVMContext(), ArrayRef<llvm::Value *>()));
----------------
Alexey Samsonov wrote:
> Richard Smith wrote:
> > It seems more future-safe to pick a more general name for this, describing its functionality not this particular use case. Maybe `"nosanitize"`?
> Sounds good.
Done.

http://reviews.llvm.org/D4544






More information about the cfe-commits mailing list