DebugInfo: Gut DICompileUnit and DIFile
[oota-llvm.git] / lib / Transforms / Utils / CloneFunction.cpp
index f5ca7ac9efd47e47e6eda41ebbfb7fd41b34fad4..f200b588194e33ea843270bc41cd96138e4698ee 100644 (file)
@@ -171,7 +171,7 @@ static void AddOperand(DICompileUnit CU, MDSubprogramArray SPs, Metadata *NewSP)
   for (auto *SP : SPs)
     NewSPs.push_back(SP);
   NewSPs.push_back(NewSP);
-  CU.replaceSubprograms(MDTuple::get(CU->getContext(), NewSPs));
+  CU->replaceSubprograms(MDTuple::get(CU->getContext(), NewSPs));
 }
 
 // Clone the module-level debug info associated with OldFunc. The cloned data