Skip to content

Commit c340cf0

Browse files
Fix argument name of GEPOp builder (#74810)
This MR fix the argument name of GEPOp builder from `basePtrType` to `elementType` to avoid confusion. Co-authored-by: Xiaolei Shi <[email protected]>
1 parent 76ee344 commit c340cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ def LLVM_GEPOp : LLVM_Op<"getelementptr", [Pure,
284284
}];
285285

286286
let builders = [
287-
OpBuilder<(ins "Type":$resultType, "Type":$basePtrType, "Value":$basePtr,
287+
OpBuilder<(ins "Type":$resultType, "Type":$elementType, "Value":$basePtr,
288288
"ValueRange":$indices, CArg<"bool", "false">:$inbounds,
289289
CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
290-
OpBuilder<(ins "Type":$resultType, "Type":$basePtrType, "Value":$basePtr,
290+
OpBuilder<(ins "Type":$resultType, "Type":$elementType, "Value":$basePtr,
291291
"ArrayRef<GEPArg>":$indices, CArg<"bool", "false">:$inbounds,
292292
CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
293293
];

0 commit comments

Comments
 (0)