From 454c320c6eb05f749eee0502f9db6c7ce84f1067 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 30 Mar 2015 21:05:29 +0000 Subject: [PATCH] Transforms: Fix a use of the old DebugLoc in unittests Missed this one before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233597 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Transforms/Utils/Cloning.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittests/Transforms/Utils/Cloning.cpp b/unittests/Transforms/Utils/Cloning.cpp index 8374099680e..7a1170c3b85 100644 --- a/unittests/Transforms/Utils/Cloning.cpp +++ b/unittests/Transforms/Utils/Cloning.cpp @@ -346,10 +346,10 @@ TEST_F(CloneFunc, InstructionOwnership) { // Verify that the debug location data is the same EXPECT_EQ(OldDL.getLine(), NewDL.getLine()); EXPECT_EQ(OldDL.getCol(), NewDL.getCol()); - + // But that they belong to different functions - DISubprogram OldSubprogram(OldDL.getScope(C)); - DISubprogram NewSubprogram(NewDL.getScope(C)); + DISubprogram OldSubprogram(OldDL.getScope()); + DISubprogram NewSubprogram(NewDL.getScope()); EXPECT_TRUE(OldSubprogram.Verify()); EXPECT_TRUE(NewSubprogram.Verify()); EXPECT_EQ(OldFunc, OldSubprogram.getFunction()); -- 2.34.1