forked from OSchip/llvm-project
Return the correct type from isReferenceType().
llvm-svn: 39956
This commit is contained in:
parent
354fb2678d
commit
ee673372ef
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue