File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include < optional>
10
- #include < utility>
9
+ #include " mlir/Pass/PassRegistry.h"
11
10
12
11
#include " mlir/Pass/Pass.h"
13
12
#include " mlir/Pass/PassManager.h"
14
- #include " mlir/Pass/PassRegistry.h"
15
13
#include " llvm/ADT/DenseMap.h"
16
14
#include " llvm/ADT/ScopeExit.h"
17
15
#include " llvm/Support/Format.h"
18
16
#include " llvm/Support/ManagedStatic.h"
19
17
#include " llvm/Support/MemoryBuffer.h"
20
18
#include " llvm/Support/SourceMgr.h"
21
19
20
+ #include < optional>
21
+ #include < utility>
22
+
22
23
using namespace mlir ;
23
24
using namespace detail ;
24
25
@@ -99,7 +100,10 @@ void mlir::registerPassPipeline(
99
100
PassPipelineInfo pipelineInfo (arg, description, function,
100
101
std::move (optHandler));
101
102
bool inserted = passPipelineRegistry->try_emplace (arg, pipelineInfo).second ;
102
- assert (inserted && " Pass pipeline registered multiple times" );
103
+ #ifndef NDEBUG
104
+ if (!inserted)
105
+ report_fatal_error (" Pass pipeline " + arg + " registered multiple times" );
106
+ #endif
103
107
(void )inserted;
104
108
}
105
109
You can’t perform that action at this time.
0 commit comments