summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-03-01 22:52:28 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-03-01 22:52:28 +0000
commitc4e5d0ccda9d9f2532ad7d6019dc9a4eedc11f5b (patch)
tree870f724f213a16a93ba8393e33b0afa7e5956134 /clang/lib/CodeGen/CGObjC.cpp
parent66b0721014db31b1d821e5c3d72d8d270f00945f (diff)
downloadbcm5719-llvm-c4e5d0ccda9d9f2532ad7d6019dc9a4eedc11f5b.tar.gz
bcm5719-llvm-c4e5d0ccda9d9f2532ad7d6019dc9a4eedc11f5b.zip
Make CodeGenFunction::EmitBlockCopyAndAutorelease actually do what its name says.
llvm-svn: 151853
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 9eb58fc603c..6d95f17226e 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -2777,9 +2777,9 @@ CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction(
llvm::Value *
CodeGenFunction::EmitBlockCopyAndAutorelease(llvm::Value *Block, QualType Ty) {
// Get selectors for retain/autorelease.
- IdentifierInfo *RetainID = &getContext().Idents.get("retain");
- Selector RetainSelector =
- getContext().Selectors.getNullarySelector(RetainID);
+ IdentifierInfo *CopyID = &getContext().Idents.get("copy");
+ Selector CopySelector =
+ getContext().Selectors.getNullarySelector(CopyID);
IdentifierInfo *AutoreleaseID = &getContext().Idents.get("autorelease");
Selector AutoreleaseSelector =
getContext().Selectors.getNullarySelector(AutoreleaseID);
@@ -2789,7 +2789,7 @@ CodeGenFunction::EmitBlockCopyAndAutorelease(llvm::Value *Block, QualType Ty) {
llvm::Value *Val = Block;
RValue Result;
Result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
- Ty, RetainSelector,
+ Ty, CopySelector,
Val, CallArgList(), 0, 0);
Val = Result.getScalarVal();
Result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
OpenPOWER on IntegriCloud