DebugInfo: Gut DICompileUnit and DIFile
[oota-llvm.git] / unittests / Transforms / Utils / Cloning.cpp
index b56d453997fd3e8d83cf45e4e2372ace77e33ce1..ca68bb83d6d6613cfdd2e30e8eab5e9d259f6daf 100644 (file)
@@ -322,8 +322,8 @@ TEST_F(CloneFunc, SubprogramInRightCU) {
   DICompileUnit CU1 = cast<MDCompileUnit>(*Iter);
   Iter++;
   DICompileUnit CU2 = cast<MDCompileUnit>(*Iter);
-  EXPECT_TRUE(CU1.getSubprograms().size() == 0 ||
-              CU2.getSubprograms().size() == 0);
+  EXPECT_TRUE(CU1->getSubprograms().size() == 0 ||
+              CU2->getSubprograms().size() == 0);
 }
 
 // Test that instructions in the old function still belong to it in the