Transforms: Fix a use of the old DebugLoc in unittests
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 21:05:29 +0000 (21:05 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 21:05:29 +0000 (21:05 +0000)
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

index 8374099680e6f4994aa83a106940be8692afff21..7a1170c3b857b13fc18ad4aa4f3aea7aa733083e 100644 (file)
@@ -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());