diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-08 19:23:12 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-08 19:23:12 +0000 |
commit | 1b824c9e43a8f9d5d88f501e4df7da3c833f636c (patch) | |
tree | 115245935067b6b20fc3b1bcc58f082047b1399e /llvm/lib | |
parent | 4d295118944e911bb43cd8e8f92d6a70f746c7bd (diff) | |
download | bcm5719-llvm-1b824c9e43a8f9d5d88f501e4df7da3c833f636c.tar.gz bcm5719-llvm-1b824c9e43a8f9d5d88f501e4df7da3c833f636c.zip |
SelectionDAG: Avoid implicit iterator conversions in SelectionDAGBuilder, NFC
llvm-svn: 274907
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 39cdd77f0be..8cce0efb32d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -8152,7 +8152,8 @@ SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) { 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; } } |