We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nullptr
1 parent a33e985 commit 8d24800Copy full SHA for 8d24800
flang/include/flang/Lower/Bridge.h
@@ -64,7 +64,10 @@ class LoweringBridge {
64
//===--------------------------------------------------------------------===//
65
66
mlir::MLIRContext &getMLIRContext() { return context; }
67
- mlir::ModuleOp &getModule() { return *module.get(); }
+ mlir::ModuleOp &getModule() {
68
+ assert(module && "This bridge is missing an MLIR module");
69
+ return *module.get();
70
+ }
71
const Fortran::common::IntrinsicTypeDefaultKinds &getDefaultKinds() const {
72
return defaultKinds;
73
}
0 commit comments