[all-commits] [llvm/llvm-project] 6534ce: [Clang] [NFC] Update OptionalUnsigned ctor to only...
Sirraide via All-commits
all-commits at lists.llvm.org
Mon Jul 27 12:50:07 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6534ceefd231771466abc9c388b93bb8b0913316
https://github.com/llvm/llvm-project/commit/6534ceefd231771466abc9c388b93bb8b0913316
Author: Sirraide <aeternalmail at gmail.com>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M clang/include/clang/Basic/OptionalUnsigned.h
Log Message:
-----------
[Clang] [NFC] Update OptionalUnsigned ctor to only reject signed integers (#212321)
Currently, the `OptionalUnsigned(int) = delete;` constructor means that
constructing e.g. an `OptionalOrUnsigned<uint64_t>` from an `unsigned`
fails because overload resolution is ambiguous (because `unsigned` ->
`int` and `unsigned` -> `uint64_t` are both valid conversions). This
patch adds a constraint to make sure the deleted constructor only
catches signed integer types.
This is needed for #212319.
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