diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-23 00:34:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-23 00:34:04 +0000 |
commit | f9a85a33113be7403c6321c708741036ce04dcc8 (patch) | |
tree | ca6d290a88ab8e98e98fcadcb04e58edb8499dda /lib | |
parent | 5e8fbc2c0c34b9d212b77a54c38563b75726e13f (diff) | |
download | external_llvm-f9a85a33113be7403c6321c708741036ce04dcc8.zip external_llvm-f9a85a33113be7403c6321c708741036ce04dcc8.tar.gz external_llvm-f9a85a33113be7403c6321c708741036ce04dcc8.tar.bz2 |
Use isSingleValueType instead of isFirstClassType to
exclude struct and array types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 4a4a52c..a76e514 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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; |