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
Loading
Please sign in to comment