diff options
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 4f955aaf09..4dc9d76bd1 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -28,6 +28,11 @@ bool Sema::IsTypeDoublePrecisionComplex(QualType T) const { return T->isComplexType() && Context.isTypeDoubleComplex(T); } +/// Returns true if a type is a byte type. +bool Sema::IsTypeByte(QualType T) const { + return Context.isTypeByte(T); +} + /// Returns TST_integer/TST_real/TST_complex if a given type /// is an arithmetic type, or TST_unspecified otherwise static TypeSpecifierType GetArithmeticTypeSpec(QualType T) { |