diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2010-07-21 15:28:28 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2010-07-21 15:28:28 +0000 |
commit | f69ea958964ab0452299f1df68ce469b67d18d3a (patch) | |
tree | 258134958b3e75bce00f0f61d4bc6fa4ce432f1e /lib/CodeGen/CGObjCGNU.cpp | |
parent | 41d0c7a2355c1a47b33f5e528c5f815ca5b52e9e (diff) |
Don't crash when sending a message inside a block with the non-fragile ABI (GNU runtime).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 41c1a2a750..7fd2d36122 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -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); |