Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion clang/lib/Sema/SemaDeclAttr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,8 @@ bool Sema::CheckAttrTarget(const ParsedAttr &AL) {
// Check whether the attribute is valid on the current target.
if (!AL.existsInTarget(Context.getTargetInfo())) {
if (AL.isRegularKeywordAttribute())
Diag(AL.getLoc(), diag::err_keyword_not_supported_on_target);
Diag(AL.getLoc(), diag::err_keyword_not_supported_on_target)
<< AL << AL.getRange();
else
DiagnoseUnknownAttribute(AL);
AL.setInvalid();
Expand Down
3 changes: 3 additions & 0 deletions clang/test/Sema/unsupported-arm-streaming.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// RUN: %clang_cc1 -x c -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s

void arm_streaming(void) __arm_streaming {} // expected-error {{'__arm_streaming' is not supported on this target}}