[llvm] r291787 - [DebugInfo] DILocation variable declaration should be const; NFC.
Robert Lougher via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 10:33:49 PST 2017
Author: rlougher
Date: Thu Jan 12 12:33:49 2017
New Revision: 291787
URL: http://llvm.org/viewvc/llvm-project?rev=291787&view=rev
Log:
[DebugInfo] DILocation variable declaration should be const; NFC.
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=291787&r1=291786&r2=291787&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Thu Jan 12 12:33:49 2017
@@ -1577,7 +1577,7 @@ static bool sinkLastInstruction(ArrayRef
// 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)
More information about the llvm-commits
mailing list