diff options
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; } |