[all-commits] [llvm/llvm-project] 669df4: [mlir][Presburger] Fix inlining failure for dynami...

lonely eagle via All-commits all-commits at lists.llvm.org
Wed Apr 29 04:23:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 669df4d18b8b196ba985df00dc2ae2165589bf56
      https://github.com/llvm/llvm-project/commit/669df4d18b8b196ba985df00dc2ae2165589bf56
  Author: lonely eagle <2020382038 at qq.com>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    M mlir/lib/Analysis/Presburger/Utils.cpp
    M mlir/unittests/Analysis/Presburger/Utils.h

  Log Message:
  -----------
  [mlir][Presburger] Fix inlining failure for dynamicAPIntFromInt64 in debug builds (#194820)

When `dynamicAPIntFromInt64` is passed as a function pointer to
`llvm::transform`, it becomes an indirect call. This causes the compiler
to fail to inline the function despite the
`LLVM_ATTRIBUTE_ALWAYS_INLINE` annotation, resulting in a compilation
error in debug builds:
```
error: inlining failed in call to 'always_inline' 'llvm::DynamicAPInt llvm::dynamicAPIntFromInt64(int64_t)': indirect function call with a yet undetermined callee
  250 | LLVM_ATTRIBUTE_ALWAYS_INLINE DynamicAPInt dynamicAPIntFromInt64(int64_t X) {
```

Fix this by wrapping `dynamicAPIntFromInt64` in a lambda, turning the
indirect call into a direct call that the compiler can inline at the
call site.



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