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

Peter Collingbourne peter at pcc.me.uk
Sun Jan 2 11:53:20 PST 2011


Author: pcc
Date: Sun Jan  2 13:53:19 2011
New Revision: 122709

URL: http://llvm.org/viewvc/llvm-project?rev=122709&view=rev
Log:
Funciton -> Function

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=122709&r1=122708&r2=122709&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Sun Jan  2 13:53:19 2011
@@ -579,7 +579,7 @@
                                              start, size));
 }
 
-static bool isStaticVarOrStaticFunciton(Decl *D) {
+static bool isStaticVarOrStaticFunction(Decl *D) {
   if (VarDecl *VD = dyn_cast<VarDecl>(D))
     return VD->getStorageClass() == SC_Static;
   if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
@@ -629,7 +629,7 @@
   // This looks like a bug in gcc. We reject that for now. We should revisit
   // it if this behaviour is actually used.
 
-  if (!isStaticVarOrStaticFunciton(d)) {
+  if (!isStaticVarOrStaticFunction(d)) {
     S.Diag(Attr.getLoc(), diag::err_attribute_weakref_not_static) <<
       dyn_cast<NamedDecl>(d)->getNameAsString();
     return;
@@ -1257,7 +1257,7 @@
   }
 
   /* weak only applies to non-static declarations */
-  if (isStaticVarOrStaticFunciton(D)) {
+  if (isStaticVarOrStaticFunction(D)) {
     S.Diag(Attr.getLoc(), diag::err_attribute_weak_static) <<
       dyn_cast<NamedDecl>(D)->getNameAsString();
     return;





More information about the cfe-commits mailing list