Verify function attributes.
[oota-llvm.git] / lib / VMCore / PassManager.cpp
index 20fc68c47486c75067d2c778a4ca6c079791036d..29a6df0d6a7124cb51fbdccc9de36c99fd3a6f7d 100644 (file)
@@ -1581,7 +1581,7 @@ void ModulePass::assignPassManager(PMStack &PMS,
     else
       break;
   }
-
+  assert(!PMS.empty() && "Unable to find appropriate Pass Manager");
   PMS.top()->add(this);
 }