[cfe-commits] r39380 - /cfe/cfe/trunk/include/clang/AST/Decl.h

Steve Naroff snaroff at apple.com
Wed Jul 11 09:43:48 PDT 2007


Author: snaroff
Date: Wed Jul 11 11:43:47 2007
New Revision: 39380

URL: http://llvm.org/viewvc/llvm-project?rev=39380&view=rev
Log:
Bug #:
Submitted by:
Reviewed by:
Minor bug/typo in classof.

Modified:
    cfe/cfe/trunk/include/clang/AST/Decl.h

Modified: cfe/cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/Decl.h?rev=39380&r1=39379&r2=39380&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/cfe/trunk/include/clang/AST/Decl.h Wed Jul 11 11:43:47 2007
@@ -165,7 +165,7 @@
     : VarDecl(FileVariable, L, Id, T, S) {}
   
   // Implement isa/cast/dyncast/etc.
-  static bool classof(const VarDecl *D) { return D->getKind() == FileVariable; }
+  static bool classof(const Decl *D) { return D->getKind() == FileVariable; }
   static bool classof(const FileVarDecl *D) { return true; }
 };
 





More information about the cfe-commits mailing list