[DebugInfo] DILocation variable declaration should be const; NFC.

llvm-svn: 291787
This commit is contained in:
Robert Lougher 2017-01-12 18:33:49 +00:00
parent 84da661509
commit 6717a6fe54
1 changed files with 1 additions and 1 deletions

View File

@ -1577,7 +1577,7 @@ static bool sinkLastInstruction(ArrayRef<BasicBlock*> Blocks) {
// The debug location for the "common" instruction is the merged locations of
// all the commoned instructions. We start with the original location of the
// "common" instruction and iteratively merge each location in the loop below.
DILocation *Loc = I0->getDebugLoc();
const DILocation *Loc = I0->getDebugLoc();
// Update metadata and IR flags, and merge debug locations.
for (auto *I : Insts)