summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
diff options
context:
space:
mode:
authorRobert Lougher <rob.lougher@gmail.com>2017-01-12 18:29:28 +0000
committerRobert Lougher <rob.lougher@gmail.com>2017-01-12 18:29:28 +0000
commitf5df7a18dd35c778d5009080f9729ba3833705ba (patch)
tree75c6b0d2d8603a4d7d09f7be5370eb616092088e /llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
parenta8c325e2f52241ebc245ed1a92a01210a93fc588 (diff)
downloadbcm5719-llvm-f5df7a18dd35c778d5009080f9729ba3833705ba.tar.gz
bcm5719-llvm-f5df7a18dd35c778d5009080f9729ba3833705ba.zip
[DebugInfo] Add const to DILocation variable declaration; NFC.
llvm-svn: 291785
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
index 184897f751f..4cbffe9533b 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
@@ -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));
OpenPOWER on IntegriCloud