diff options
Diffstat (limited to 'clang/lib/Sema/TargetAttributesSema.cpp')
-rw-r--r-- | clang/lib/Sema/TargetAttributesSema.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/TargetAttributesSema.cpp b/clang/lib/Sema/TargetAttributesSema.cpp index 1469e1247f6..034e460eeb2 100644 --- a/clang/lib/Sema/TargetAttributesSema.cpp +++ b/clang/lib/Sema/TargetAttributesSema.cpp @@ -108,6 +108,8 @@ namespace { MSP430AttributesSema() { } bool ProcessDeclAttribute(Scope *scope, Decl *D, const AttributeList &Attr, Sema &S) const { + // Because this attribute has no spelling (see the FIXME in Attr.td as to + // why), we must check for the name instead of the attribute kind. if (Attr.getName()->getName() == "interrupt") { HandleMSP430InterruptAttr(D, Attr, S); return true; |