diff options
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 2 |
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. |