forked from OSchip/llvm-project
Let's do super message sends with static allocas instead of dynamic ones.
llvm-svn: 126989
This commit is contained in:
parent
3cec6f5563
commit
6647584951
|
@ -1556,7 +1556,7 @@ CGObjCMac::GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
|
|||
// Create and init a super structure; this is a (receiver, class)
|
||||
// pair we will pass to objc_msgSendSuper.
|
||||
llvm::Value *ObjCSuper =
|
||||
CGF.Builder.CreateAlloca(ObjCTypes.SuperTy, 0, "objc_super");
|
||||
CGF.CreateTempAlloca(ObjCTypes.SuperTy, "objc_super");
|
||||
llvm::Value *ReceiverAsObject =
|
||||
CGF.Builder.CreateBitCast(Receiver, ObjCTypes.ObjectPtrTy);
|
||||
CGF.Builder.CreateStore(ReceiverAsObject,
|
||||
|
@ -5837,7 +5837,7 @@ CGObjCNonFragileABIMac::GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
|
|||
// Create and init a super structure; this is a (receiver, class)
|
||||
// pair we will pass to objc_msgSendSuper.
|
||||
llvm::Value *ObjCSuper =
|
||||
CGF.Builder.CreateAlloca(ObjCTypes.SuperTy, 0, "objc_super");
|
||||
CGF.CreateTempAlloca(ObjCTypes.SuperTy, "objc_super");
|
||||
|
||||
llvm::Value *ReceiverAsObject =
|
||||
CGF.Builder.CreateBitCast(Receiver, ObjCTypes.ObjectPtrTy);
|
||||
|
|
Loading…
Reference in New Issue