mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Don't rely on implicit pointerness of 'auto'.
This ends up being a copy. Pointy hat to me. Reported by: dexonsmith, dblaikie git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237394 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4789642b0b
commit
42d0f8304e
@ -639,7 +639,7 @@ bool LoopIdiomRecognize::runOnCountableLoop() {
|
||||
|
||||
bool MadeChange = false;
|
||||
// Scan all the blocks in the loop that are not in subloops.
|
||||
for (auto BB : CurLoop->getBlocks()) {
|
||||
for (auto *BB : CurLoop->getBlocks()) {
|
||||
// Ignore blocks in subloops.
|
||||
if (LI.getLoopFor(BB) != CurLoop)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user