From: Anders Carlsson Date: Mon, 29 Oct 2007 02:52:18 +0000 (+0000) Subject: Add BuiltinType::Char_S to Type::isCharType X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c67ad5f299bb2c09e4567def8ff0d34bd15a42fd;p=clang Add BuiltinType::Char_S to Type::isCharType git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43428 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/Type.cpp b/AST/Type.cpp index 284841810e..bde2eb5d1d 100644 --- a/AST/Type.cpp +++ b/AST/Type.cpp @@ -288,7 +288,8 @@ bool Type::isCharType() const { if (const BuiltinType *BT = dyn_cast(CanonicalType)) return BT->getKind() == BuiltinType::Char_U || BT->getKind() == BuiltinType::UChar || - BT->getKind() == BuiltinType::Char_S; + BT->getKind() == BuiltinType::Char_S || + BT->getKind() == BuiltinType::SChar; return false; }