projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e26b7aa
)
[AVR] Prefer BasicBlock::getIterator over Function::begin()
author
Dylan McKay
<me@dylanmckay.io>
Tue, 26 Sep 2017 01:37:53 +0000
(
01:37
+0000)
committer
Dylan McKay
<me@dylanmckay.io>
Tue, 26 Sep 2017 01:37:53 +0000
(
01:37
+0000)
Thanks to Eli Friedman for the suggestion.
llvm-svn: 314182
llvm/lib/Target/AVR/AVRISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVRISelLowering.cpp
b/llvm/lib/Target/AVR/AVRISelLowering.cpp
index
50255f3
..
890379d
100644
(file)
--- a/
llvm/lib/Target/AVR/AVRISelLowering.cpp
+++ b/
llvm/lib/Target/AVR/AVRISelLowering.cpp
@@
-1471,7
+1471,7
@@
MachineBasicBlock *AVRTargetLowering::insertShift(MachineInstr &MI,
const BasicBlock *LLVM_BB = BB->getBasicBlock();
MachineFunction::iterator I;
- for (I =
F->begin
(); I != F->end() && &(*I) != BB; ++I);
+ for (I =
BB->getIterator
(); I != F->end() && &(*I) != BB; ++I);
if (I != F->end()) ++I;
// Create loop block.