Skip to content

Commit a789891

Browse files
fabianmcgjoker-eph
andauthored
Update mlir/lib/Dialect/Ptr/IR/PtrDialect.cpp
Co-authored-by: Mehdi Amini <[email protected]>
1 parent 133e3ef commit a789891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Ptr/IR/PtrDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void PtrDialect::initialize() {
4545
// PtrAddOp
4646
//===----------------------------------------------------------------------===//
4747

48-
/// Fold the op to the base ptr when the offset is 0.
48+
/// Fold: ptradd ptr + 0 -> ptr
4949
OpFoldResult PtrAddOp::fold(FoldAdaptor adaptor) {
5050
Attribute attr = adaptor.getOffset();
5151
if (!attr)

0 commit comments

Comments
 (0)