[cfe-commits] r39956 - in /cfe/trunk: AST/Type.cpp include/clang/AST/Type.h

Bill Wendling isanbard at gmail.com
Mon Jul 16 21:47:36 PDT 2007


Author: void
Date: Mon Jul 16 23:47:36 2007
New Revision: 39956

URL: http://llvm.org/viewvc/llvm-project?rev=39956&view=rev
Log:
Return the correct type from isReferenceType().

Modified:
    cfe/trunk/AST/Type.cpp
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Type.cpp?rev=39956&r1=39955&r2=39956&view=diff

==============================================================================
--- cfe/trunk/AST/Type.cpp (original)
+++ cfe/trunk/AST/Type.cpp Mon Jul 16 23:47:36 2007
@@ -72,7 +72,7 @@
   return 0;
 }
 
-bool Type::isReferenceType() const {
+const ReferenceType *Type::isReferenceType() const {
   // If this is directly a reference type, return it.
   if (const ReferenceType *RTy = dyn_cast<ReferenceType>(this))
     return RTy;

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

==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Mon Jul 16 23:47:36 2007
@@ -33,6 +33,7 @@
   class Expr;
   class SourceLocation;
   class PointerType;
+  class ReferenceType;
   class VectorType;
   
 /// QualType - For efficiency, we don't store CVR-qualified types as nodes on
@@ -235,7 +236,7 @@
   /// Derived types (C99 6.2.5p20). isFunctionType() is also a derived type.
   bool isDerivedType() const;
   const PointerType *isPointerType() const;
-  bool isReferenceType() const;
+  const ReferenceType *isReferenceType() const;
   bool isArrayType() const;
   bool isStructureType() const;   
   bool isUnionType() const;





More information about the cfe-commits mailing list