Remove redundant calls to isMaterializable.
[oota-llvm.git] / lib / IR / LegacyPassManager.cpp
index 1081f2a1b8c27c6555a57995504aa85e4ee91cab..28fa74cbfda93973d242217ffcccc4baf25c9fac 100644 (file)
@@ -1403,10 +1403,8 @@ void FunctionPassManager::add(Pass *P) {
 /// so, return true.
 ///
 bool FunctionPassManager::run(Function &F) {
-  if (F.isMaterializable()) {
-    if (std::error_code EC = F.materialize())
-      report_fatal_error("Error reading bitcode file: " + EC.message());
-  }
+  if (std::error_code EC = F.materialize())
+    report_fatal_error("Error reading bitcode file: " + EC.message());
   return FPM->run(F);
 }