summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorMarco Antognini <marco.antognini@arm.com>2019-07-22 09:39:13 +0000
committerMarco Antognini <marco.antognini@arm.com>2019-07-22 09:39:13 +0000
commit88559637641e993895337e1047a0bd787fecc647 (patch)
tree639b057daba633db68b8fa4d34a957913786c64f /clang/lib/CodeGen/CGCall.cpp
parent6771a89fa01ffb1ea8702d7b07e259750ae62f1c (diff)
downloadbcm5719-llvm-88559637641e993895337e1047a0bd787fecc647.tar.gz
bcm5719-llvm-88559637641e993895337e1047a0bd787fecc647.zip
[OpenCL] Improve destructor support in C++ for OpenCL
This re-applies r366422 with a fix for Bug PR42665 and a new regression test. llvm-svn: 366670
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 890bf2ba772..9c18d69fb6c 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -3505,7 +3505,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);
+ /*Delegating=*/false, Addr, Ty);
} else {
CGF.callCStructDestructor(CGF.MakeAddrLValue(Addr, Ty));
}
OpenPOWER on IntegriCloud