diff options
author | Anders Carlsson <andersca@mac.com> | 2007-10-29 02:52:18 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2007-10-29 02:52:18 +0000 |
commit | c67ad5f299bb2c09e4567def8ff0d34bd15a42fd (patch) | |
tree | 128c35a4c601289378643620a4f9b1a7e35cf0e8 | |
parent | 4f50ee3e6db9d5ec8c1a56fa07510dab06194564 (diff) |
Add BuiltinType::Char_S to Type::isCharType
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43428 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | AST/Type.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<BuiltinType>(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; } |