From 4c3e3bf9fb1bb897b1c21472aa544a7ddd4af292 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 3 Aug 2016 03:26:09 +0000 Subject: [PATCH] [PM] Remove the NDEBUG condition around isModulePassName. 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp index 3bdbb19..4dae874 100644 --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/lib/Passes/PassBuilder.cpp @@ -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. -- 2.7.4