diff options
author | Robert Lougher <rob.lougher@gmail.com> | 2017-01-12 18:29:28 +0000 |
---|---|---|
committer | Robert Lougher <rob.lougher@gmail.com> | 2017-01-12 18:29:28 +0000 |
commit | f5df7a18dd35c778d5009080f9729ba3833705ba (patch) | |
tree | 75c6b0d2d8603a4d7d09f7be5370eb616092088e /llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | |
parent | a8c325e2f52241ebc245ed1a92a01210a93fc588 (diff) | |
download | bcm5719-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.cpp | 2 |
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)); |