From 6717a6fe54cbfb5fc4578015b6f8e15d0537e6b9 Mon Sep 17 00:00:00 2001 From: Robert Lougher Date: Thu, 12 Jan 2017 18:33:49 +0000 Subject: [PATCH] [DebugInfo] DILocation variable declaration should be const; NFC. llvm-svn: 291787 --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 54390e77bb1f..01bfd1230149 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1577,7 +1577,7 @@ static bool sinkLastInstruction(ArrayRef 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)