[PATCH] [lsan] Implement __lsan_suppress_object().

Alexander Potapenko glider at google.com
Tue Jun 4 04:56:27 PDT 2013



================
Comment at: lib/lsan/lit_tests/TestCases/ignore_object.cc:22
@@ +21,3 @@
+  // Break optimization.
+  fprintf(stderr, "Test alloc: %p.\n", q);
+  __lsan_ignore_object(p);
----------------
Isn't "volatile" enough to break the optimization here?


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



More information about the llvm-commits mailing list