Don't crash when sending a message inside a block with the non-fragile ABI (GNU runtime).
llvm-svn: 109012
This commit is contained in:
parent
7fa204edc7
commit
4715d161c0
|
@ -692,7 +692,7 @@ CGObjCGNU::GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
|
|||
Params.push_back(SelectorTy);
|
||||
llvm::Value *self;
|
||||
|
||||
if (isa<ObjCMethodDecl>(CGF.CurFuncDecl)) {
|
||||
if (isa<ObjCMethodDecl>(CGF.CurCodeDecl)) {
|
||||
self = CGF.LoadObjCSelf();
|
||||
} else {
|
||||
self = llvm::ConstantPointerNull::get(IdTy);
|
||||
|
|
Loading…
Reference in New Issue