[llvm] r233597 - Transforms: Fix a use of the old DebugLoc in unittests
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Mar 30 14:05:29 PDT 2015
Author: dexonsmith
Date: Mon Mar 30 16:05:29 2015
New Revision: 233597
URL: http://llvm.org/viewvc/llvm-project?rev=233597&view=rev
Log:
Transforms: Fix a use of the old DebugLoc in unittests
Missed this one before.
Modified:
llvm/trunk/unittests/Transforms/Utils/Cloning.cpp
Modified: llvm/trunk/unittests/Transforms/Utils/Cloning.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Utils/Cloning.cpp?rev=233597&r1=233596&r2=233597&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Utils/Cloning.cpp (original)
+++ llvm/trunk/unittests/Transforms/Utils/Cloning.cpp Mon Mar 30 16:05:29 2015
@@ -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());
More information about the llvm-commits
mailing list