From: Chris Lattner Date: Sun, 15 Jul 2007 23:46:53 +0000 (+0000) Subject: don't let builtin-type handling code fall into pointer handling code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfef6d7c67831a135d6ab79931f010f750a730ad;p=clang don't let builtin-type handling code fall into pointer handling code not all builtin types have size and alignment equal to pointers :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39887 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index d62bf94298..6e6849f0b2 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -180,6 +180,7 @@ ASTContext::getTypeInfo(QualType T, SourceLocation L) { case BuiltinType::Double: Target.getDoubleInfo(Size, Align, L); break; case BuiltinType::LongDouble: Target.getLongDoubleInfo(Size, Align,L);break; } + break; } case Type::Pointer: Target.getPointerInfo(Size, Align, L); break; case Type::Reference: