[all-commits] [llvm/llvm-project] 12e662: [Support] Avoid setting minor/subminor/build in Ve...

Cyndy Ishida via All-commits all-commits at lists.llvm.org
Fri May 9 16:56:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12e6622d4a6602e1c63b261b185eab136b4827de
      https://github.com/llvm/llvm-project/commit/12e6622d4a6602e1c63b261b185eab136b4827de
  Author: Cyndy Ishida <cyndy_ishida at apple.com>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M clang/test/Driver/xros-driver.c
    M llvm/include/llvm/Support/VersionTuple.h
    M llvm/lib/Support/VersionTuple.cpp
    M llvm/unittests/Support/VersionTupleTest.cpp

  Log Message:
  -----------
  [Support] Avoid setting minor/subminor/build in VersionTuple::withMajorReplaced (#139318)

The expectation of this API is that it only changes the major version of
a preexisting version tuple. However, it was adding 0's, which caused
unintended changes in serialization or printing.

Instead, check for the existence of the non-major parts of the tuple.



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