[cfe-commits] r99662 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Ted Kremenek kremenek at apple.com
Fri Mar 26 15:57:10 PDT 2010


Author: kremenek
Date: Fri Mar 26 17:57:10 2010
New Revision: 99662

URL: http://llvm.org/viewvc/llvm-project?rev=99662&view=rev
Log:
Add comment indicating that we intentionally don't add the noreturn
attribute to a FunctionDecl.

Modified:
    cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=99662&r1=99661&r2=99662&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Fri Mar 26 17:57:10 2010
@@ -490,6 +490,9 @@
 }
 
 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))





More information about the cfe-commits mailing list