[all-commits] [llvm/llvm-project] e0111e: [clang] Fix -Wunused-template in frontend helpers ...
Aditya Medhane via All-commits
all-commits at lists.llvm.org
Wed Jun 10 10:25:00 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0111e951c105e3975b6aad2b0adf94a6d005028
https://github.com/llvm/llvm-project/commit/e0111e951c105e3975b6aad2b0adf94a6d005028
Author: Aditya Medhane <sherlockedaditya at gmail.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M clang/lib/Frontend/ASTUnit.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
Log Message:
-----------
[clang] Fix -Wunused-template in frontend helpers (NFC) (#202980)
Two frontend templates trip `-Wunused-template`.
In `ASTUnit.cpp`, `moveOnNoError` is an unused duplicate (the live copy
lives in `PrecompiledPreamble.cpp`), so it's removed.
In `CompilerInvocation.cpp`, `mergeMaskValue` and `extractMaskValue` are
the option-marshalling helpers that `OptParser.td` names for bitfield
options. No option currently uses that kind, so they never instantiate.
They're kept and marked `[[maybe_unused]]`, since deleting them would
break any future bitfield option.
NFC.
Part of #202945.
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