================ 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