Index: mlir/lib/Target/LLVMIR/ModuleImport.cpp =================================================================== --- mlir/lib/Target/LLVMIR/ModuleImport.cpp +++ mlir/lib/Target/LLVMIR/ModuleImport.cpp @@ -1062,6 +1062,12 @@ return root; } + if (isa(c)) { + emitError(unknownLoc) + << "blockaddress is not implemented in the LLVM dialect"; + return nullptr; + } + return emitError(loc) << "unhandled constant: " << diag(*constant); }