summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.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/CGBlocks.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/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index e6ecb6a88bc..c6d5be059c9 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -535,9 +535,9 @@ static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) {
// Block captures count as local values and have imprecise semantics.
// They also can't be arrays, so need to worry about that.
if (dtorKind == QualType::DK_objc_strong_lifetime) {
- destroyer = &CodeGenFunction::destroyARCStrongImprecise;
+ destroyer = CodeGenFunction::destroyARCStrongImprecise;
} else {
- destroyer = &CGF.getDestroyer(dtorKind);
+ destroyer = CGF.getDestroyer(dtorKind);
}
// GEP down to the address.
@@ -554,7 +554,7 @@ static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) {
cleanupKind = InactiveNormalAndEHCleanup;
CGF.pushDestroy(cleanupKind, addr, variable->getType(),
- *destroyer, useArrayEHCleanup);
+ destroyer, useArrayEHCleanup);
// Remember where that cleanup was.
capture.setCleanup(CGF.EHStack.stable_begin());
OpenPOWER on IntegriCloud