summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-07-18 11:55:33 +0000
committerIlya Biryukov <ibiryukov@google.com>2019-07-18 11:55:33 +0000
commit4f8dc16fcdb6851c91b520d0ee595f5193ef51ef (patch)
tree001336fbdb293ef73980ee4ef4a0e4f324d288ef /clang/lib/CodeGen/CGCall.cpp
parent8f5b44aead89a56c6fbf85ccfda03ae1e82ac431 (diff)
downloadbcm5719-llvm-4f8dc16fcdb6851c91b520d0ee595f5193ef51ef.tar.gz
bcm5719-llvm-4f8dc16fcdb6851c91b520d0ee595f5193ef51ef.zip
Revert r366422: [OpenCL] Improve destructor support in C++ for OpenCL
Reason: this commit causes crashes in the clang compiler when building LLVM Support with libc++, see https://bugs.llvm.org/show_bug.cgi?id=42665 for details. llvm-svn: 366429
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index cf8024550ee..5f1fb100748 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -3502,7 +3502,7 @@ struct DestroyUnpassedArg final : EHScopeStack::Cleanup {
const CXXDestructorDecl *Dtor = Ty->getAsCXXRecordDecl()->getDestructor();
assert(!Dtor->isTrivial());
CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, /*for vbase*/ false,
- /*Delegating=*/false, Addr, Ty);
+ /*Delegating=*/false, Addr);
} else {
CGF.callCStructDestructor(CGF.MakeAddrLValue(Addr, Ty));
}
OpenPOWER on IntegriCloud