[PATCH] D38026: Make LSan compliant with recovery mode when running on top of ASan

Maxim Ostapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 02:09:11 PDT 2017


m.ostapenko added subscribers: llvm-commits, m.ostapenko.
m.ostapenko added inline comments.


================
Comment at: lib/asan/asan_rtl.cc:463
+      if (flags()->halt_on_error)
+	Atexit(__lsan::DoLeakCheck);
+      else
----------------
please clang-format


================
Comment at: test/asan/TestCases/recoverable-lsan.cc:9
+int f () {
+  volatile int* a = (int*)malloc(20);
+  a[0] = 1;
----------------
Likewise.


https://reviews.llvm.org/D38026





More information about the llvm-commits mailing list