[PATCH] Annotate BumpPtrAllocator for MemorySanitizer

Kostya Serebryany kcc at google.com
Wed Jan 30 06:19:25 PST 2013



================
Comment at: include/llvm/Support/Compiler.h:298
@@ -295,1 +297,3 @@
 
+/// \macro LLVM_ENABLE_ASAN_ANNOTATIONS
+/// \brief Are AddressSanitizer annotations available.
----------------
this is not used now, right? 

================
Comment at: include/llvm/Support/Compiler.h:320
@@ +319,3 @@
+# define LLVM_ENABLE_MSAN_ANNOTATIONS 1
+#else
+# define LLVM_ENABLE_MSAN_ANNOTATIONS 0
----------------
we better define 
  MSAN_ALLOCATED_MEMORY 
as empty here and use it in .cpp files to avoid #ifdefs in cpp files


http://llvm-reviews.chandlerc.com/D336



More information about the llvm-commits mailing list