Return the correct type from isReferenceType().

llvm-svn: 39956
This commit is contained in:
Bill Wendling 2007-07-17 04:47:36 +00:00
parent 354fb2678d
commit ee673372ef
2 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,7 @@ const PointerType *Type::isPointerType() const {
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;

View File

@ -33,6 +33,7 @@ namespace clang {
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 @@ public:
/// 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;