diff options
author | Mike Stump <mrs@apple.com> | 2009-03-06 02:29:21 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-06 02:29:21 +0000 |
commit | 45031c08c608e548ac12caf0547f89574e994b96 (patch) | |
tree | f3d9f96af0c005221febe9db866ce82d1ea8f74d /lib/CodeGen/CGDecl.cpp | |
parent | a4f668f3b7e03629066a01b04e415cb2b4655daf (diff) |
More codegen support for the copy/dispose helpers for block literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 2b995d150c..a24802b285 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -375,9 +375,9 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { llvm::Value *copy_helper = Builder.CreateStructGEP(DeclPtr, 4); llvm::Value *destroy_helper = Builder.CreateStructGEP(DeclPtr, 5); - Builder.CreateStore(BuildCopyHelper(flag), copy_helper); + Builder.CreateStore(BuildbyrefCopyHelper(flag), copy_helper); - Builder.CreateStore(BuildDestroyHelper(flag), destroy_helper); + Builder.CreateStore(BuildbyrefDestroyHelper(flag), destroy_helper); } needsDispose = true; } |