[llvm] r274903 - SelectionDAG: Avoid implicit iterator conversions in ScheduleDAGSDNodes, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 12:07:10 PDT 2016
Author: dexonsmith
Date: Fri Jul 8 14:07:09 2016
New Revision: 274903
URL: http://llvm.org/viewvc/llvm-project?rev=274903&view=rev
Log:
SelectionDAG: Avoid implicit iterator conversions in ScheduleDAGSDNodes, NFC
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp?rev=274903&r1=274902&r2=274903&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp Fri Jul 8 14:07:09 2016
@@ -750,7 +750,7 @@ ProcessSourceNode(SDNode *N, SelectionDA
return;
}
- Orders.push_back(std::make_pair(Order, std::prev(Emitter.getInsertPos())));
+ Orders.push_back(std::make_pair(Order, &*std::prev(Emitter.getInsertPos())));
ProcessSDDbgValues(N, DAG, Emitter, Orders, VRBaseMap, Order);
}
More information about the llvm-commits
mailing list