diff options
author | Robert Lougher <rob.lougher@gmail.com> | 2017-01-12 18:33:49 +0000 |
---|---|---|
committer | Robert Lougher <rob.lougher@gmail.com> | 2017-01-12 18:33:49 +0000 |
commit | 6717a6fe54cbfb5fc4578015b6f8e15d0537e6b9 (patch) | |
tree | efa657aefbb0b07e049d6fce3b126160cd562b38 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 84da6615097d45b9aa2353dcf045225cf5beba1f (diff) | |
download | bcm5719-llvm-6717a6fe54cbfb5fc4578015b6f8e15d0537e6b9.tar.gz bcm5719-llvm-6717a6fe54cbfb5fc4578015b6f8e15d0537e6b9.zip |
[DebugInfo] DILocation variable declaration should be const; NFC.
llvm-svn: 291787
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 54390e77bb1..01bfd123014 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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) |