summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-19 23:25:57 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-19 23:25:57 +0000
commit9f9559e807339ef728e372ddd358f3508bf15fce (patch)
tree81c54a74ed5efe5317b924608007ffabbebbbcc6 /llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
parent6372a0bd51aca8762014c334926b9b13ab17e7b6 (diff)
downloadbcm5719-llvm-9f9559e807339ef728e372ddd358f3508bf15fce.tar.gz
bcm5719-llvm-9f9559e807339ef728e372ddd358f3508bf15fce.zip
ARM: Remove implicit ilist iterator conversions, NFC
llvm-svn: 250759
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index b14a994d53a..dc9eefe6ade 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -343,7 +343,7 @@ void ARMDAGToDAGISel::PreprocessISelDAG() {
bool isThumb2 = Subtarget->isThumb();
for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(),
E = CurDAG->allnodes_end(); I != E; ) {
- SDNode *N = I++; // Preincrement iterator to avoid invalidation issues.
+ SDNode *N = &*I++; // Preincrement iterator to avoid invalidation issues.
if (N->getOpcode() != ISD::ADD)
continue;
@@ -531,7 +531,7 @@ bool ARMDAGToDAGISel::canExtractShiftFromMul(const SDValue &N,
}
void ARMDAGToDAGISel::replaceDAGValue(const SDValue &N, SDValue M) {
- CurDAG->RepositionNode(N.getNode(), M.getNode());
+ CurDAG->RepositionNode(N.getNode()->getIterator(), M.getNode());
CurDAG->ReplaceAllUsesWith(N, M);
}
OpenPOWER on IntegriCloud