[compiler-rt] 3ffda42 - [test] Fix #if

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 13:18:50 PST 2023


Author: Fangrui Song
Date: 2023-01-03T13:18:46-08:00
New Revision: 3ffda42e50703b5402966eba3f30cd1dcad4b022

URL: https://github.com/llvm/llvm-project/commit/3ffda42e50703b5402966eba3f30cd1dcad4b022
DIFF: https://github.com/llvm/llvm-project/commit/3ffda42e50703b5402966eba3f30cd1dcad4b022.diff

LOG: [test] Fix #if

Added: 
    

Modified: 
    compiler-rt/test/dfsan/interceptors.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/dfsan/interceptors.c b/compiler-rt/test/dfsan/interceptors.c
index acef141738c6..6111b564380a 100644
--- a/compiler-rt/test/dfsan/interceptors.c
+++ b/compiler-rt/test/dfsan/interceptors.c
@@ -49,7 +49,7 @@ void test_mallinfo() {
   // The mallinfo interceptor takes an argument instead of returning a struct.
   // This doesn't work on AArch64 which uses 
diff erent registers for the two
   // function types.
-#ifdef defined(__GLIBC__) && !defined(__aarch64__)
+#if defined(__GLIBC__) && !defined(__aarch64__)
   struct mallinfo mi = mallinfo();
   for (int i = 0; i < sizeof(struct mallinfo); ++i) {
     char c = ((char *)(&mi))[i];


        


More information about the llvm-commits mailing list