diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-03-26 22:57:10 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-03-26 22:57:10 +0000 |
| commit | ee0934e05d202887054d1e2887d224e53464da50 (patch) | |
| tree | fd085321397acae69d8de0c908c7347ca846cf6d /clang/lib/Sema | |
| parent | c14922f14adc92b675204a5b68538b3f196bbe6a (diff) | |
| download | bcm5719-llvm-ee0934e05d202887054d1e2887d224e53464da50.tar.gz bcm5719-llvm-ee0934e05d202887054d1e2887d224e53464da50.zip | |
Add comment indicating that we intentionally don't add the noreturn
attribute to a FunctionDecl.
llvm-svn: 99662
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index a81ad768b8c..b3041129dba 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -490,6 +490,9 @@ static bool HandleCommonNoReturnAttr(Decl *d, const AttributeList &Attr, } static void HandleNoReturnAttr(Decl *d, const AttributeList &Attr, Sema &S) { + // NOTE: We don't add the attribute to a FunctionDecl because the noreturn + // trait will be part of the function's type. + // Don't apply as a decl attribute to ValueDecl. // FIXME: probably ought to diagnose this. if (isa<ValueDecl>(d)) |

