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.
1 parent 11175c6 commit c79fcaeCopy full SHA for c79fcae
mlir/lib/Conversion/XeVMToLLVM/XeVMToLLVM.cpp
@@ -240,9 +240,7 @@ static LLVM::CallOp createDeviceFunctionCall(
240
ArrayRef<Type> argTypes, ArrayRef<Value> args,
241
mlir::ArrayRef<std::pair<unsigned, mlir::StringRef>> paramAttrs,
242
LLVMFuncAttributeOptions funcAttributeOptions, Operation *op) {
243
- auto moduleOp = rewriter.getBlock()
244
- ->getParentOp()
245
- ->getParentWithTrait<OpTrait::SymbolTable>();
+ auto moduleOp = op->getParentWithTrait<OpTrait::SymbolTable>();
246
assert(moduleOp && "Expecting module");
247
Location loc = op->getLoc();
248
0 commit comments