Move more code back to 2.5 APIs.
[oota-llvm.git] / lib / Transforms / IPO / StripSymbols.cpp
index f2b561da80a6743b856f0c1261378d4c76edf560..1bbda3cd22dba2989ecd4e6994ed73321dbc5336 100644 (file)
@@ -232,7 +232,7 @@ bool StripDebugInfo(Module &M) {
     if (!GV) continue;
     if (!GV->use_empty() && llvmUsedValues.count(I) == 0) {
       if (GV->getName().startswith("llvm.dbg")) {
-        GV->replaceAllUsesWith(M.getContext().getUndef(GV->getType()));
+        GV->replaceAllUsesWith(UndefValue::get(GV->getType()));
       }
     }
   }