[llvm] r291785 - [DebugInfo] Add const to DILocation variable declaration; NFC.
Robert Lougher via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 10:29:28 PST 2017
Author: rlougher
Date: Thu Jan 12 12:29:28 2017
New Revision: 291785
URL: http://llvm.org/viewvc/llvm-project?rev=291785&view=rev
Log:
[DebugInfo] Add const to DILocation variable declaration; NFC.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp?rev=291785&r1=291784&r2=291785&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp Thu Jan 12 12:29:28 2017
@@ -29,7 +29,7 @@ using namespace llvm::PatternMatch;
/// locations of the original PHI node arguments.
DebugLoc InstCombiner::PHIArgMergedDebugLoc(PHINode &PN) {
auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0));
- DILocation *Loc = FirstInst->getDebugLoc();
+ const DILocation *Loc = FirstInst->getDebugLoc();
for (unsigned i = 1; i != PN.getNumIncomingValues(); ++i) {
auto *I = cast<Instruction>(PN.getIncomingValue(i));
More information about the llvm-commits
mailing list