forked from OSchip/llvm-project
don't let builtin-type handling code fall into pointer handling code
not all builtin types have size and alignment equal to pointers :) llvm-svn: 39887
This commit is contained in:
parent
5c4664e355
commit
48f84b85b7
|
@ -180,6 +180,7 @@ ASTContext::getTypeInfo(QualType T, SourceLocation L) {
|
||||||
case BuiltinType::Double: Target.getDoubleInfo(Size, Align, L); break;
|
case BuiltinType::Double: Target.getDoubleInfo(Size, Align, L); break;
|
||||||
case BuiltinType::LongDouble: Target.getLongDoubleInfo(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::Pointer: Target.getPointerInfo(Size, Align, L); break;
|
||||||
case Type::Reference:
|
case Type::Reference:
|
||||||
|
|
Loading…
Reference in New Issue