File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2041,7 +2041,8 @@ bool Sema::CheckAttrTarget(const ParsedAttr &AL) {
2041
2041
// Check whether the attribute is valid on the current target.
2042
2042
if (!AL.existsInTarget (Context.getTargetInfo ())) {
2043
2043
if (AL.isRegularKeywordAttribute ())
2044
- Diag (AL.getLoc (), diag::err_keyword_not_supported_on_target);
2044
+ Diag (AL.getLoc (), diag::err_keyword_not_supported_on_target)
2045
+ << AL << AL.getRange ();
2045
2046
else
2046
2047
DiagnoseUnknownAttribute (AL);
2047
2048
AL.setInvalid ();
Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -x c -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s
2
+
3
+ void arm_streaming (void ) __arm_streaming {} // expected-error {{'__arm_streaming' is not supported on this target}}
You can’t perform that action at this time.
0 commit comments