aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit403bc3f85f3b3461b73abdd9c632980bf95f34bd (patch)
treea0c0f1615d57db6bee69dc74e655a8dd21ed7c51 /lib/CodeGen
parent61ea4fe2c230914061bfbf7f4b4530020e425250 (diff)
Fix -forwardingTargetForSelector: (GNUstep runtime) which was broken for the
old dispatch mechanism when I introduced the new one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index b6e07ab83d..0a207ab76d 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/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);