[llvm] r274907 - SelectionDAG: Avoid implicit iterator conversions in SelectionDAGBuilder, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 12:23:12 PDT 2016
Author: dexonsmith
Date: Fri Jul 8 14:23:12 2016
New Revision: 274907
URL: http://llvm.org/viewvc/llvm-project?rev=274907&view=rev
Log:
SelectionDAG: Avoid implicit iterator conversions in SelectionDAGBuilder, NFC
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=274907&r1=274906&r2=274907&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Fri Jul 8 14:23:12 2016
@@ -8152,7 +8152,8 @@ SelectionDAGBuilder::HandlePHINodesInSuc
EVT VT = ValueVTs[vti];
unsigned NumRegisters = TLI.getNumRegisters(*DAG.getContext(), VT);
for (unsigned i = 0, e = NumRegisters; i != e; ++i)
- FuncInfo.PHINodesToUpdate.push_back(std::make_pair(MBBI++, Reg+i));
+ FuncInfo.PHINodesToUpdate.push_back(
+ std::make_pair(&*MBBI++, Reg + i));
Reg += NumRegisters;
}
}
More information about the llvm-commits
mailing list