aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Transforms/Utils/CloningTest.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-06-11 12:15:09 +0100
committerStephen Tozer <stephen.tozer@sony.com>2024-06-11 12:19:06 +0100
commit2dc2290860355dd2bac3b655eea895fe30fde257 (patch)
tree00007f64a0db2547527ffc46360f1dffca26f19f /llvm/unittests/Transforms/Utils/CloningTest.cpp
parentfc6e97cf2f28a9c7a73b97488ec6b90fc0d34a4a (diff)
downloadllvm-2dc2290860355dd2bac3b655eea895fe30fde257.zip
llvm-2dc2290860355dd2bac3b655eea895fe30fde257.tar.gz
llvm-2dc2290860355dd2bac3b655eea895fe30fde257.tar.bz2
Revert new debug info format commits:
"[Flang] Update test to not check for tail calls on debug intrinsics" & "Reapply#3 "[RemoveDIs] Load into new debug info format by default in LLVM (#89799)" Recent updates to flang have added debug info generation via MLIR, a path which currently does not support debug records. The patch that enables debug records by default (and a small followup patch) are thus being reverted until the MLIR path has been fixed. This reverts commits: 21396be865b4640abf6afa0b05de6708a1a996e0 c5aeca732d1ff6769b0659efebd1cfb5f60487e4
Diffstat (limited to 'llvm/unittests/Transforms/Utils/CloningTest.cpp')
-rw-r--r--llvm/unittests/Transforms/Utils/CloningTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Transforms/Utils/CloningTest.cpp b/llvm/unittests/Transforms/Utils/CloningTest.cpp
index 1d0d56a..5e302d9 100644
--- a/llvm/unittests/Transforms/Utils/CloningTest.cpp
+++ b/llvm/unittests/Transforms/Utils/CloningTest.cpp
@@ -844,9 +844,8 @@ TEST(CloneFunction, CloneFunctionWithInlinedSubprograms) {
EXPECT_FALSE(verifyModule(*ImplModule, &errs()));
// Check that DILexicalBlock of inlined function was not cloned.
- auto DbgDeclareI = Func->begin()->begin()->getDbgRecordRange().begin();
- auto ClonedDbgDeclareI =
- ClonedFunc->begin()->begin()->getDbgRecordRange().begin();
+ auto DbgDeclareI = Func->begin()->begin();
+ auto ClonedDbgDeclareI = ClonedFunc->begin()->begin();
const DebugLoc &DbgLoc = DbgDeclareI->getDebugLoc();
const DebugLoc &ClonedDbgLoc = ClonedDbgDeclareI->getDebugLoc();
EXPECT_NE(DbgLoc.get(), ClonedDbgLoc.get());