From aafe4b63d98fd596625763064250d4ebd7af2dcd Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 1 Mar 2016 00:38:39 +0000 Subject: [PATCH] [asan] Fix new[]/delete mismatch in tests. This code is actually never executed because all RUN lines trigger an earlier heap-use-after-free, but there is still a compiler warning. llvm-svn: 262276 --- compiler-rt/test/asan/TestCases/large_func_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/asan/TestCases/large_func_test.cc b/compiler-rt/test/asan/TestCases/large_func_test.cc index 6b592f8..8d9afae 100644 --- a/compiler-rt/test/asan/TestCases/large_func_test.cc +++ b/compiler-rt/test/asan/TestCases/large_func_test.cc @@ -49,5 +49,5 @@ int main(int argc, char **argv) { // CHECK-Linux: {{ #0 0x.* in operator new.*}} // CHECK-Darwin: {{ #0 0x.* in .*_Zna.*}} // CHECK: {{ #1 0x.* in main .*large_func_test.cc:}}[[@LINE-7]] - delete x; + delete[] x; } -- 2.7.4