[all-commits] [llvm/llvm-project] 910ad3: [Clang] Improve diagnostics about the invalid targ...
henrywong via All-commits
all-commits at lists.llvm.org
Sat Sep 24 19:33:50 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 910ad36e1a2592915b32941844cf089442972d7a
https://github.com/llvm/llvm-project/commit/910ad36e1a2592915b32941844cf089442972d7a
Author: wangliushuai <wangliushuai at bytedance.com>
Date: 2022-09-25 (Sun, 25 Sep 2022)
Changed paths:
M clang/include/clang/Basic/DiagnosticFrontendKinds.td
M clang/lib/Basic/TargetInfo.cpp
A clang/test/Frontend/invalid-target-feature.c
Log Message:
-----------
[Clang] Improve diagnostics about the invalid target feature.
Clang with debug builds will crash when run with empty target feature input.
And the warning message is a little bit confusing. This patch adds an empty
check and a new diagnostic to illustrate where goes wrong.
Reviewed By: MaskRay, aaron.ballman
Differential Revision: https://reviews.llvm.org/D133563
More information about the All-commits
mailing list