[PM] Remove the NDEBUG condition around isModulePassName.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 3 Aug 2016 03:26:09 +0000 (03:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 3 Aug 2016 03:26:09 +0000 (03:26 +0000)
I forgot to do this initially, and added when I saw this fail in
a no-asserts build, but managed to loose the diff from the actual patch
that got submitted. Very sorry.

llvm-svn: 277562

llvm/lib/Passes/PassBuilder.cpp

index 3bdbb19..4dae874 100644 (file)
@@ -274,7 +274,6 @@ void PassBuilder::addLTODefaultPipeline(ModulePassManager &MPM,
   MPM.addPass(createModuleToFunctionPassAdaptor(std::move(LateFPM)));
 }
 
-#ifndef NDEBUG
 static bool isModulePassName(StringRef Name) {
   // Manually handle aliases for pre-configured pipeline fragments.
   if (Name.startswith("default") || Name.startswith("lto"))
@@ -298,7 +297,6 @@ static bool isModulePassName(StringRef Name) {
 
   return false;
 }
-#endif
 
 static bool isCGSCCPassName(StringRef Name) {
   // Explicitly handle pass manager names.