summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-23 00:34:04 +0000
committerDan Gohman <gohman@apple.com>2008-05-23 00:34:04 +0000
commit396ed504f1a39959befcf13e3303eb21a4af555e (patch)
treece90c240aeee07cdc7e804df435b5a189a9d7832
parent30ab45d01ee142b5c579369dd8f01ea62fb2d6d3 (diff)
downloadbcm5719-llvm-396ed504f1a39959befcf13e3303eb21a4af555e.tar.gz
bcm5719-llvm-396ed504f1a39959befcf13e3303eb21a4af555e.zip
Use isSingleValueType instead of isFirstClassType to
exclude struct and array types. llvm-svn: 51460
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 4a4a52c7b00..a76e514f887 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud