[compiler-rt] b99cf5f - [ASan][test] Fix mismatched-new-delete in asan test unaligned_loads_and_stores.cpp

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 20:58:46 PDT 2022


Author: Enna1
Date: 2022-04-23T11:57:59+08:00
New Revision: b99cf5f25a646102d345b06d19d235e64946bd22

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

LOG: [ASan][test] Fix mismatched-new-delete in asan test unaligned_loads_and_stores.cpp

Fix mismatched-new-delete in asan test unaligned_loads_and_stores.cpp

Reviewed By: vitalybuka, MaskRay

Differential Revision: https://reviews.llvm.org/D124268

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp b/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp
index fa8d7becfcb16..17415971c2e6d 100644
--- a/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp
+++ b/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp
@@ -47,6 +47,6 @@ int main(int argc, char **argv) {
     case 'O': __sanitizer_unaligned_store64(x + 14, 0); break;
 //  CHECK-O: main{{.*}}unaligned_loads_and_stores.cpp:[[@LINE-1]]
   }
-  delete x;
+  delete[] x;
   return res;
 }


        


More information about the llvm-commits mailing list