mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
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
This commit is contained in:
@@ -346,10 +346,10 @@ TEST_F(CloneFunc, InstructionOwnership) {
|
|||||||
// Verify that the debug location data is the same
|
// Verify that the debug location data is the same
|
||||||
EXPECT_EQ(OldDL.getLine(), NewDL.getLine());
|
EXPECT_EQ(OldDL.getLine(), NewDL.getLine());
|
||||||
EXPECT_EQ(OldDL.getCol(), NewDL.getCol());
|
EXPECT_EQ(OldDL.getCol(), NewDL.getCol());
|
||||||
|
|
||||||
// But that they belong to different functions
|
// But that they belong to different functions
|
||||||
DISubprogram OldSubprogram(OldDL.getScope(C));
|
DISubprogram OldSubprogram(OldDL.getScope());
|
||||||
DISubprogram NewSubprogram(NewDL.getScope(C));
|
DISubprogram NewSubprogram(NewDL.getScope());
|
||||||
EXPECT_TRUE(OldSubprogram.Verify());
|
EXPECT_TRUE(OldSubprogram.Verify());
|
||||||
EXPECT_TRUE(NewSubprogram.Verify());
|
EXPECT_TRUE(NewSubprogram.Verify());
|
||||||
EXPECT_EQ(OldFunc, OldSubprogram.getFunction());
|
EXPECT_EQ(OldFunc, OldSubprogram.getFunction());
|
||||||
|
Reference in New Issue
Block a user