diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-30 21:05:29 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-30 21:05:29 +0000 |
commit | 4fff3ec3da89d58cb93bcbc3c034c43e31fe3cf7 (patch) | |
tree | 8623d8d13ff42eb887ce24d824c9e11d812cfae3 /llvm/unittests/Transforms/Utils/Cloning.cpp | |
parent | 3909da7f4b2dec7f6672c3119e53497306905459 (diff) | |
download | bcm5719-llvm-4fff3ec3da89d58cb93bcbc3c034c43e31fe3cf7.tar.gz bcm5719-llvm-4fff3ec3da89d58cb93bcbc3c034c43e31fe3cf7.zip |
Transforms: Fix a use of the old DebugLoc in unittests
Missed this one before.
llvm-svn: 233597
Diffstat (limited to 'llvm/unittests/Transforms/Utils/Cloning.cpp')
-rw-r--r-- | llvm/unittests/Transforms/Utils/Cloning.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp index 8374099680e..7a1170c3b85 100644 --- a/llvm/unittests/Transforms/Utils/Cloning.cpp +++ b/llvm/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()); |