[all-commits] [llvm/llvm-project] fedbd3: [CIR][NFC] Fix compilation error CIRGenModule (#22...

Amr Hesham via All-commits all-commits at lists.llvm.org
Fri Sep 18 11:53:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fedbd3bdbe650fce8fe92a020698cc2db55a4ed7
      https://github.com/llvm/llvm-project/commit/fedbd3bdbe650fce8fe92a020698cc2db55a4ed7
  Author: Amr Hesham <amr96 at programmer.net>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenModule.cpp

  Log Message:
  -----------
  [CIR][NFC] Fix compilation error CIRGenModule (#224694)

Fix deduced conflicting types for parameter when calling std::max with
unsigned long and unsigned long long, can be fixed by
`std::max(f.getAlignment().value_or(1), 2ull)` but in this line, the
alignment is always less than 2 because of the parent if condition, so
max is always 2



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