[PATCH] Annotate BumpPtrAllocator for MemorySanitizer

Kostya Serebryany kcc at google.com
Wed Jan 30 07:07:07 PST 2013


  LGTM


================
Comment at: lib/Support/Allocator.cpp:106
@@ -104,2 +105,3 @@
     CurPtr = Ptr + Size;
+    __msan_allocated_memory(Ptr, Size);
     return Ptr;
----------------
maybe add a comment why we need this?


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



More information about the llvm-commits mailing list