summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-03-10 01:47:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-03-10 01:47:22 +0000
commit007cb6df582f30ca9299d8b61357e9e45557c262 (patch)
treef64348e10d5d3ee78c3833e0b54f73c8e433d550 /clang/lib/CodeGen/CGObjCMac.cpp
parentaaabea0636eb5177b4b26f9d932268dc7f677b08 (diff)
downloadbcm5719-llvm-007cb6df582f30ca9299d8b61357e9e45557c262.tar.gz
bcm5719-llvm-007cb6df582f30ca9299d8b61357e9e45557c262.zip
Revert r326946. It caused stack overflows by significantly increasing the size of a CallArgList.
llvm-svn: 327195
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 64f40e1a069..c3793b29a83 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -1708,7 +1708,7 @@ struct NullReturnState {
e = Method->param_end(); i != e; ++i, ++I) {
const ParmVarDecl *ParamDecl = (*i);
if (ParamDecl->hasAttr<NSConsumedAttr>()) {
- RValue RV = I->getRValue(CGF);
+ RValue RV = I->RV;
assert(RV.isScalar() &&
"NullReturnState::complete - arg not on object");
CGF.EmitARCRelease(RV.getScalarVal(), ARCImpreciseLifetime);
@@ -7071,7 +7071,7 @@ CGObjCNonFragileABIMac::EmitVTableMessageSend(CodeGenFunction &CGF,
CGF.getPointerAlign());
// Update the message ref argument.
- args[1].setRValue(RValue::get(mref.getPointer()));
+ args[1].RV = RValue::get(mref.getPointer());
// Load the function to call from the message ref table.
Address calleeAddr =
OpenPOWER on IntegriCloud