[SROA] Run clang-format over the entire SROA pass as I wrote it before
[oota-llvm.git] / lib / LTO / LTOCodeGenerator.cpp
index 31ab3401c9dc8a8c6cd0761667cbb0c4ff0bd005..c663d43fe7fdec56979651a2bde5f3052427c54a 100644 (file)
@@ -128,6 +128,9 @@ void LTOCodeGenerator::initializeLTOPasses() {
 }
 
 bool LTOCodeGenerator::addModule(LTOModule *mod) {
+  assert(&mod->getModule().getContext() == &Context &&
+         "Expected module in same context");
+
   bool ret = IRLinker.linkInModule(&mod->getModule());
 
   const std::vector<const char*> &undefs = mod->getAsmUndefinedRefs();