diff options
author | Mike Stump <mrs@apple.com> | 2009-03-06 01:33:24 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-06 01:33:24 +0000 |
commit | a4f668f3b7e03629066a01b04e415cb2b4655daf (patch) | |
tree | e22535785d1ecd2de960f56386df0fae16c12543 /lib/CodeGen/CGDecl.cpp | |
parent | b67db99d58c0a09a5a0ec336be5854451df6df8c (diff) |
Framework for codegen for copy/dispose helpers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66231 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 e750d8a8d5..2b995d150c 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -354,10 +354,10 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { if (flag&BLOCK_FIELD_IS_WEAK) isa = 1; V = llvm::ConstantInt::get(llvm::Type::Int32Ty, isa); - V = Builder.CreateIntToPtr(V, PtrToInt8Ty, "tmp"); + V = Builder.CreateIntToPtr(V, PtrToInt8Ty, "isa"); Builder.CreateStore(V, isa_field); - V = Builder.CreateBitCast(DeclPtr, PtrToInt8Ty, "tmp"); + V = Builder.CreateBitCast(DeclPtr, PtrToInt8Ty, "forwarding"); Builder.CreateStore(V, forwarding_field); V = llvm::ConstantInt::get(llvm::Type::Int32Ty, flags); |