// should be on the use list of the llvm.dbg.translation_units global.
//
GlobalVariable *Units =
- M->getGlobalVariable("llvm.dbg.translation_units", StructType::get());
+ M->getGlobalVariable("llvm.dbg.translation_units",
+ StructType::get(M->getContext()));
if (Units == 0)
throw "Program contains no debugging information!";
// should be on the use list of the llvm.dbg.translation_units global.
//
GlobalVariable *Units =
- M->getGlobalVariable("llvm.dbg.globals", StructType::get());
+ M->getGlobalVariable("llvm.dbg.globals", StructType::get(M->getContext()));
if (Units == 0)
throw "Program contains no debugging information!";