Commit f8c695b3 by Jim Stichnoth

Subzero: Fix a build issue against LLVM trunk.

The existing code gives a build error against LLVM trunk. Actually, the latest LLVM trunk causes a lot more Subzero build problems, but if we roll LLVM back to 1d79fff9e65e77f84bf80c2cf4f0155bd167c90d, everything builds except for this one issue. BUG= none R=kschimpf@google.com Review-Url: https://codereview.chromium.org/2598263002 .
parent 35bbca3f
...@@ -1296,7 +1296,7 @@ void TargetMIPS32::lowerArguments() { ...@@ -1296,7 +1296,7 @@ void TargetMIPS32::lowerArguments() {
for (CfgNode *Node : Func->getNodes()) { for (CfgNode *Node : Func->getNodes()) {
for (Inst &Instr : Node->getInsts()) { for (Inst &Instr : Node->getInsts()) {
if (llvm::isa<InstRet>(&Instr)) { if (llvm::isa<InstRet>(&Instr)) {
Context.setInsertPoint(Instr); Context.setInsertPoint(instToIterator(&Instr));
Context.insert<InstFakeUse>(ImplicitRetVec); Context.insert<InstFakeUse>(ImplicitRetVec);
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment