[llvm] r344113 - [NFC] Make a variable const
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 9 21:19:38 PDT 2018
Author: mkazantsev
Date: Tue Oct 9 21:19:38 2018
New Revision: 344113
URL: http://llvm.org/viewvc/llvm-project?rev=344113&view=rev
Log:
[NFC] Make a variable const
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp?rev=344113&r1=344112&r2=344113&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp Tue Oct 9 21:19:38 2018
@@ -106,7 +106,7 @@ namespace {
/// Otherwise return null.
Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) {
Value *IVSrc = nullptr;
- unsigned OperIdx = 0;
+ const unsigned OperIdx = 0;
const SCEV *FoldedExpr = nullptr;
switch (UseInst->getOpcode()) {
default:
More information about the llvm-commits
mailing list