llvm / llvm/llvm-project

`Triple::getMacOSXVersion` returns 28 on latest macOS 27 beta

Open Beginner friendly
#210,645 0 comments 0 reactions 0 assignees View on GitHub
llvm:support platform:macos
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

The latest beta uses Darwin 27 which conflicts with the existing logic in `llvm/lib/TargetParser/Triple.cpp:1532`. This causes the test `HostTest.getMacOSHostVersion` to fail among other problems.

Contributor guide

Open the contributing guide

Research direction

Start in llvm/lib/TargetParser/Triple.cpp at line 1532 and inspect the logic used by Triple::getMacOSXVersion for Darwin versions. Run the HostTest.getMacOSHostVersion test, adjust the handling so Darwin 27 reports the correct macOS beta version, and confirm that the test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.