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.
DIScopeForLLVMFuncOp
1 parent f5815b9 commit a1b6daeCopy full SHA for a1b6dae
mlir/lib/Dialect/LLVMIR/Transforms/DIScopeForLLVMFuncOp.cpp
@@ -91,6 +91,10 @@ struct DIScopeForLLVMFuncOp
91
Location loc = module.getLoc();
92
93
MLIRContext *context = &getContext();
94
+ if (!context->getLoadedDialect<LLVM::LLVMDialect>()) {
95
+ emitError(loc, "LLVM dialect is not loaded.");
96
+ return signalPassFailure();
97
+ }
98
99
// To find a DICompileUnitAttr attached to a parent (the module for
100
// example), otherwise create a default one.
0 commit comments