1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Use isSingleValueType instead of isFirstClassType to

exclude struct and array types.

llvm-svn: 51460
This commit is contained in:
Dan Gohman 2008-05-23 00:34:04 +00:00
parent 698b435f13
commit 144390078f

View File

@ -3937,9 +3937,9 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
if (OpInfo.isIndirect)
OpTy = cast<PointerType>(OpTy)->getElementType();
// If OpTy is not a first-class value, it may be a struct/union that we
// If OpTy is not a single value, it may be a struct/union that we
// can tile with integers.
if (!OpTy->isFirstClassType() && OpTy->isSized()) {
if (!OpTy->isSingleValueType() && OpTy->isSized()) {
unsigned BitSize = TD->getTypeSizeInBits(OpTy);
switch (BitSize) {
default: break;