[PATCH] D121857: [scudo] Don't assume preprocessor macro is defined

Dominic Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 14:12:00 PDT 2022


ddcc created this revision.
ddcc added reviewers: vitalybuka, eugenis, cryptoad, mcgrathr, hctim.
Herald added a project: All.
ddcc requested review of this revision.
Herald added a project: Sanitizers.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121857

Files:
  compiler-rt/lib/scudo/standalone/platform.h


Index: compiler-rt/lib/scudo/standalone/platform.h
===================================================================
--- compiler-rt/lib/scudo/standalone/platform.h
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121857.415981.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220316/0635b2ee/attachment.bin>


More information about the llvm-commits mailing list