From: Robert Lougher Date: Thu, 12 Jan 2017 18:29:28 +0000 (+0000) Subject: [DebugInfo] Add const to DILocation variable declaration; NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=972c41872a1793e7566e006ab3fada6c4495d5fa;p=llvm [DebugInfo] Add const to DILocation variable declaration; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291785 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombinePHI.cpp b/lib/Transforms/InstCombine/InstCombinePHI.cpp index 184897f751f..4cbffe9533b 100644 --- a/lib/Transforms/InstCombine/InstCombinePHI.cpp +++ b/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(PN.getIncomingValue(0)); - DILocation *Loc = FirstInst->getDebugLoc(); + const DILocation *Loc = FirstInst->getDebugLoc(); for (unsigned i = 1; i != PN.getNumIncomingValues(); ++i) { auto *I = cast(PN.getIncomingValue(i));