summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCleanup.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-01-26 03:33:36 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-01-26 03:33:36 +0000
commit1425b4556a9b97e5b1cbca441ee08bee151fdb9f (patch)
treed92aaf0875a9a08e9c3d938191d4194f51f99aed /clang/lib/CodeGen/CGCleanup.cpp
parente67bb67a9b8986411683269d6520b49ad339d32f (diff)
downloadbcm5719-llvm-1425b4556a9b97e5b1cbca441ee08bee151fdb9f.tar.gz
bcm5719-llvm-1425b4556a9b97e5b1cbca441ee08bee151fdb9f.zip
Use function pointers, rather than references, to pass Destroyers
around, in the process cleaning up the various gcc/msvc compiler workarounds. llvm-svn: 149036
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index f1f17afdb45..645ef2520de 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -1098,8 +1098,6 @@ llvm::Value *CodeGenFunction::getNormalCleanupDestSlot() {
void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary,
QualType TempType,
llvm::Value *Ptr) {
- // This local is a GCC and MSVC compiler workaround.
- Destroyer *destroyer = &destroyCXXObject;
- pushDestroy(NormalAndEHCleanup, Ptr, TempType, *destroyer,
+ pushDestroy(NormalAndEHCleanup, Ptr, TempType, destroyCXXObject,
/*useEHCleanup*/ true);
}
OpenPOWER on IntegriCloud