From 1d893bfcea1b7149b1f55b103f7654e68e91d6b6 Mon Sep 17 00:00:00 2001 From: Max Kazantsev Date: Wed, 10 Oct 2018 04:19:38 +0000 Subject: [PATCH] [NFC] Make a variable const llvm-svn: 344113 --- llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp index 65b23f4d94a1b..51fda1c620b60 100644 --- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -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: