diff options
| author | Davide Italiano <davide@freebsd.org> | 2015-05-14 21:52:12 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2015-05-14 21:52:12 +0000 |
| commit | 95a77e8901772a586884fed188e171ca17052383 (patch) | |
| tree | fc974b0b7c2b2ff3cc866743ca6cf81fb944e07b /llvm/lib | |
| parent | d26b0c4d31ef4088a8d9db77366d637704917338 (diff) | |
| download | bcm5719-llvm-95a77e8901772a586884fed188e171ca17052383.tar.gz bcm5719-llvm-95a77e8901772a586884fed188e171ca17052383.zip | |
Don't rely on implicit pointerness of 'auto'.
This ends up being a copy. Pointy hat to me.
Reported by: dexonsmith, dblaikie
llvm-svn: 237394
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 9bc0153bf51..a4806c20efc 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -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; |

