[all-commits] [llvm/llvm-project] 48e89a: [mlir][transform] Fix Wtype-limits warning (#146898)

Longsheng Mou via All-commits all-commits at lists.llvm.org
Thu Jul 3 18:32:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48e89a8cf4b80ab49b1728d51ed775349858dd99
      https://github.com/llvm/llvm-project/commit/48e89a8cf4b80ab49b1728d51ed775349858dd99
  Author: Longsheng Mou <longshengmou at gmail.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M mlir/lib/Dialect/Transform/IR/TransformOps.cpp

  Log Message:
  -----------
  [mlir][transform] Fix Wtype-limits warning (#146898)

```
warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
```
`size_t` is unsigned and always non-negative, whereas `getInt()` returns
a signless `int64_t`. To ensure type compatibility and eliminate the
warning, `dynamicOptionIdx` should be changed to `int64_t`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list