[cfe-commits] r109012 - /cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
David Chisnall
csdavec at swan.ac.uk
Wed Jul 21 08:28:28 PDT 2010
Author: theraven
Date: Wed Jul 21 10:28:28 2010
New Revision: 109012
URL: http://llvm.org/viewvc/llvm-project?rev=109012&view=rev
Log:
Don't crash when sending a message inside a block with the non-fragile ABI (GNU runtime).
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=109012&r1=109011&r2=109012&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Wed Jul 21 10:28:28 2010
@@ -692,7 +692,7 @@
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);
More information about the cfe-commits
mailing list