[all-commits] [llvm/llvm-project] 2c59ef: [CIR] Fix CIR __builtin_(add|sub|mul)_overflow bug...

widberg via All-commits all-commits at lists.llvm.org
Fri Jun 26 11:02:15 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c59ef4d88cce89bccf26ebbdea530f98bfe8002
      https://github.com/llvm/llvm-project/commit/2c59ef4d88cce89bccf26ebbdea530f98bfe8002
  Author: widberg <widberg at widberg.me>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/test/CIR/CodeGenBuiltins/builtins-overflow.cpp

  Log Message:
  -----------
  [CIR] Fix CIR __builtin_(add|sub|mul)_overflow bug (#192569)

This fixes a problem with CIR failing to handle boolean result types for the __builtin_(add|sub|mul)_overflow functions. We were trying to lower to operations derived from CIR_BinOpOverflow, but these operations required an integer type for the return value. This change relaxes that requirement to allow integer or boolean types.

related non-CIR PR #192568.



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