summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2011-12-01 18:40:09 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2011-12-01 18:40:09 +0000
commit6aec31a5cfa095a1ab8161b6c391fd8c0e476819 (patch)
treec1150aac5d26d250df643ffb7dfc94a843369712
parent676c093758edf10b68e7e9c3e88a746aacdf3e94 (diff)
downloadbcm5719-llvm-6aec31a5cfa095a1ab8161b6c391fd8c0e476819.tar.gz
bcm5719-llvm-6aec31a5cfa095a1ab8161b6c391fd8c0e476819.zip
Fix -forwardingTargetForSelector: (GNUstep runtime) which was broken for the
old dispatch mechanism when I introduced the new one. llvm-svn: 145609
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index b6e07ab83df..0a207ab76d5 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1196,6 +1196,8 @@ CGObjCGNU::GenerateMessageSend(CodeGenFunction &CGF,
}
}
+ // Reset the receiver in case the lookup modified it
+ ActualArgs[0] = CallArg(RValue::get(Receiver), ASTIdTy, false);
llvm::FunctionType *impType =
Types.GetFunctionType(FnInfo, Method ? Method->isVariadic() : false);
OpenPOWER on IntegriCloud