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:
parent
698b435f13
commit
144390078f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user