summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-03-01 00:38:39 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-03-01 00:38:39 +0000
commitaafe4b63d98fd596625763064250d4ebd7af2dcd (patch)
tree562bbb2e5ef9cadfb652f5730db46ae5d2427014
parent2225c8b2e4c08ba45549d85f201b627f52b49ee5 (diff)
downloadbcm5719-llvm-aafe4b63d98fd596625763064250d4ebd7af2dcd.tar.gz
bcm5719-llvm-aafe4b63d98fd596625763064250d4ebd7af2dcd.zip
[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
-rw-r--r--compiler-rt/test/asan/TestCases/large_func_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/large_func_test.cc b/compiler-rt/test/asan/TestCases/large_func_test.cc
index 6b592f8c439..8d9afaeb4a7 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;
}
OpenPOWER on IntegriCloud