aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index f67a641..0980f0e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -2095,11 +2095,11 @@ bool SimplifyCFGOpt::hoistSuccIdenticalTerminatorToSwitchOrIf(
// Ensure terminator gets a debug location, even an unknown one, in case
// it involves inlinable calls.
- SmallVector<DILocation *, 4> Locs;
+ SmallVector<DebugLoc, 4> Locs;
Locs.push_back(I1->getDebugLoc());
for (auto *OtherSuccTI : OtherSuccTIs)
Locs.push_back(OtherSuccTI->getDebugLoc());
- NT->setDebugLoc(DILocation::getMergedLocations(Locs));
+ NT->setDebugLoc(DebugLoc::getMergedLocations(Locs));
// PHIs created below will adopt NT's merged DebugLoc.
IRBuilder<NoFolder> Builder(NT);
@@ -2896,7 +2896,7 @@ static void mergeCompatibleInvokesImpl(ArrayRef<InvokeInst *> Invokes,
MergedDebugLoc = II->getDebugLoc();
else
MergedDebugLoc =
- DILocation::getMergedLocation(MergedDebugLoc, II->getDebugLoc());
+ DebugLoc::getMergedLocation(MergedDebugLoc, II->getDebugLoc());
// And replace the old `invoke` with an unconditionally branch
// to the block with the merged `invoke`.