[all-commits] [llvm/llvm-project] c96d0c: asan: Use `#if` to test CAN_SANITIZE_LEAKS
Roland McGrath via All-commits
all-commits at lists.llvm.org
Wed Sep 23 11:59:54 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c96d0cceb684fa176b51d7df5f4f8370e2c983f4
https://github.com/llvm/llvm-project/commit/c96d0cceb684fa176b51d7df5f4f8370e2c983f4
Author: Roland McGrath <mcgrathr at google.com>
Date: 2020-09-23 (Wed, 23 Sep 2020)
Changed paths:
M compiler-rt/lib/asan/asan_rtl.cpp
M compiler-rt/lib/lsan/lsan_common_fuchsia.cpp
Log Message:
-----------
asan: Use `#if` to test CAN_SANITIZE_LEAKS
The `if (0)` isn't necessarily optimized out so as not to create
a link-time reference to LSan runtime functions that might not
exist. So use explicit conditional compilation instead.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D88173
More information about the All-commits
mailing list