diff options
author | Diego Novillo <dnovillo@google.com> | 2015-05-14 20:57:48 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2015-05-14 20:57:48 +0000 |
commit | c324b92c3557b0981d38c9ee7920f2c7ab0856c8 (patch) | |
tree | e2e62915de0e13d35ffa8de9696d66af54358fac /clang/test/CodeGenCXX/new.cpp | |
parent | 4f0f708bf1a6f2604ce15929ad4deb10f462a85f (diff) | |
download | bcm5719-llvm-c324b92c3557b0981d38c9ee7920f2c7ab0856c8.tar.gz bcm5719-llvm-c324b92c3557b0981d38c9ee7920f2c7ab0856c8.zip |
Revert "Detect uses of mismatching forms of 'new' and 'delete'"
This reverts commit 742dc9b6c9686ab52860b7da39c3a126d8a97fbc.
This is generating multiple segfaults in our internal builds.
Test case coming up shortly.
llvm-svn: 237391
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/new.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp index c8e0acba7b0..59b899f2620 100644 --- a/clang/test/CodeGenCXX/new.cpp +++ b/clang/test/CodeGenCXX/new.cpp @@ -321,14 +321,14 @@ namespace N3664 { // CHECK-LABEL: define void @_ZN5N36641fEv void f() { // CHECK: call noalias i8* @_Znwm(i64 4) [[ATTR_BUILTIN_NEW:#[^ ]*]] - int *p = new int; // expected-note {{allocated with 'new' here}} + int *p = new int; // CHECK: call void @_ZdlPv({{.*}}) [[ATTR_BUILTIN_DELETE:#[^ ]*]] delete p; // CHECK: call noalias i8* @_Znam(i64 12) [[ATTR_BUILTIN_NEW]] int *q = new int[3]; // CHECK: call void @_ZdaPv({{.*}}) [[ATTR_BUILTIN_DELETE]] - delete[] p; // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; did you mean 'delete'?}} + delete [] p; // CHECK: call i8* @_ZnamRKSt9nothrow_t(i64 3, {{.*}}) [[ATTR_BUILTIN_NOTHROW_NEW:#[^ ]*]] (void) new (nothrow) S[3]; |