aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-12 02:09:17 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-12 02:09:17 +0000
commit2cd11fefb62c580651e4269e1488381c2d6d07ad (patch)
treec89350fc393ba9ee8416ce10238cdaff36f43805 /lib/AST/Type.cpp
parentc44fe4bf2962bfcb323e93a63ba4a72d67839cde (diff)
Progress.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index 11afea0446..d924135ac6 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -608,7 +608,7 @@ bool Type::isArithmeticType() const {
bool Type::isScalarType() const {
if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
- return BT->getKind() != BuiltinType::Void;
+ return BT->getKind() != BuiltinType::Void && !BT->isPlaceholderType();
if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
// Enums are scalar types, but only if they are defined. Incomplete enums
// are not treated as scalar types.