Skip to content

Commit c79fcae

Browse files
committed
Address reviewer comment.
1 parent 11175c6 commit c79fcae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/lib/Conversion/XeVMToLLVM/XeVMToLLVM.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ static LLVM::CallOp createDeviceFunctionCall(
240240
ArrayRef<Type> argTypes, ArrayRef<Value> args,
241241
mlir::ArrayRef<std::pair<unsigned, mlir::StringRef>> paramAttrs,
242242
LLVMFuncAttributeOptions funcAttributeOptions, Operation *op) {
243-
auto moduleOp = rewriter.getBlock()
244-
->getParentOp()
245-
->getParentWithTrait<OpTrait::SymbolTable>();
243+
auto moduleOp = op->getParentWithTrait<OpTrait::SymbolTable>();
246244
assert(moduleOp && "Expecting module");
247245
Location loc = op->getLoc();
248246

0 commit comments

Comments
 (0)