aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TypeLoc.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-18 20:37:56 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-18 20:37:56 +0000
commitd038f361d2b4368af7ab85bd04d5aafcc3ea649d (patch)
tree5c83b0b3a4151d11745df26c607d70b7c28b7770 /lib/AST/TypeLoc.cpp
parentcf84aa46def41cccf4dd4c51cd0543b70c11e4eb (diff)
float, double, and long double do need extra data in the
BuiltinTypeLoc structure. Thanks, Enea! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TypeLoc.cpp')
-rw-r--r--lib/AST/TypeLoc.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/AST/TypeLoc.cpp b/lib/AST/TypeLoc.cpp
index 6da2ab0dee..fd9fbc1918 100644
--- a/lib/AST/TypeLoc.cpp
+++ b/lib/AST/TypeLoc.cpp
@@ -156,11 +156,6 @@ TypeSpecifierType BuiltinTypeLoc::getWrittenTypeSpec() const {
return TST_char32;
case BuiltinType::WChar:
return TST_wchar;
- case BuiltinType::Float:
- return TST_float;
- case BuiltinType::Double:
- case BuiltinType::LongDouble:
- return TST_double;
case BuiltinType::UndeducedAuto:
return TST_auto;
@@ -176,6 +171,9 @@ TypeSpecifierType BuiltinTypeLoc::getWrittenTypeSpec() const {
case BuiltinType::Long:
case BuiltinType::LongLong:
case BuiltinType::Int128:
+ case BuiltinType::Float:
+ case BuiltinType::Double:
+ case BuiltinType::LongDouble:
llvm_unreachable("Builtin type needs extra local data!");
// Fall through, if the impossible happens.