]> granicus.if.org Git - clang/commitdiff
don't let builtin-type handling code fall into pointer handling code
authorChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 23:46:53 +0000 (23:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 23:46:53 +0000 (23:46 +0000)
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

AST/ASTContext.cpp

index d62bf94298df660a8a66e4743c60880ff932163a..6e6849f0b240f5ac430b19f34a7cef384cafcff8 100644 (file)
@@ -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: