[all-commits] [llvm/llvm-project] 8a486f: Set the minimum possible version to 0 instead of 1

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Wed May 28 12:28:45 PDT 2025


  Branch: refs/heads/users/kparzysz/spr/t08-versioned-spellings
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a486f77fba8b88d9e64ea00c58509798e210c3d
      https://github.com/llvm/llvm-project/commit/8a486f77fba8b88d9e64ea00c58509798e210c3d
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    M llvm/include/llvm/Frontend/Directive/DirectiveBase.td
    M llvm/include/llvm/Frontend/Directive/Spelling.h

  Log Message:
  -----------
  Set the minimum possible version to 0 instead of 1

The default value of the Version parameter in get<Lang><Enum>Name()
was 0, which was not in the range [1, 0x7fffffff]. To fix this, it
was either to change the default value to 1, or to lower the minimum
version to 0. The latter seemed like a better choice, since 0 is a
natural choice for a lower bound on version numbers.



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