[compiler-rt] 26a5f9b - [scudo] Don't assume preprocessor macro is defined
Dominic Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 12:54:11 PDT 2022
Author: Dominic Chen
Date: 2022-03-18T12:52:18-07:00
New Revision: 26a5f9bd03023071cd111dc11c2e14fc2bb9f7b5
URL: https://github.com/llvm/llvm-project/commit/26a5f9bd03023071cd111dc11c2e14fc2bb9f7b5
DIFF: https://github.com/llvm/llvm-project/commit/26a5f9bd03023071cd111dc11c2e14fc2bb9f7b5.diff
LOG: [scudo] Don't assume preprocessor macro is defined
Differential Revision: https://reviews.llvm.org/D121857
Added:
Modified:
compiler-rt/lib/scudo/standalone/platform.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/platform.h b/compiler-rt/lib/scudo/standalone/platform.h
index 36378d14d844f..db4217ddab9fe 100644
--- a/compiler-rt/lib/scudo/standalone/platform.h
+++ b/compiler-rt/lib/scudo/standalone/platform.h
@@ -37,7 +37,7 @@
#define SCUDO_TRUSTY 0
#endif
-#if __LP64__
+#if defined(__LP64__)
#define SCUDO_WORDSIZE 64U
#else
#define SCUDO_WORDSIZE 32U
More information about the llvm-commits
mailing list