Use isSingleValueType instead of isFirstClassType to
authorDan Gohman <gohman@apple.com>
Fri, 23 May 2008 00:34:04 +0000 (00:34 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 May 2008 00:34:04 +0000 (00:34 +0000)
exclude struct and array types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51460 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 4a4a52c7b0080c061f4dba01d89b8a55f8cab932..a76e514f887a37408b7ec2283e6ec8eecfa321bd 100644 (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;