aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-31 20:13:26 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-31 20:13:26 +0000
commitfcd75e5efb482f35cfc22fd4b64e047930130fd6 (patch)
tree334fe23a6a17c7ab3e0ac5f23db117b64a5f64f8 /lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
parentd84192fe4f6495e43ee0ff2ac591c14ba36e1e9d (diff)
Misc cleanup; addresses Duncan's comments on r138877.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index b0f4c3f2d3..08d6c7237a 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
@@ -139,8 +139,6 @@ void DAGTypeLegalizer::PromoteIntegerResult(SDNode *N, unsigned ResNo) {
SDValue DAGTypeLegalizer::PromoteIntRes_MERGE_VALUES(SDNode *N) {
SDValue Op = DecomposeMERGE_VALUES(N);
- assert(Op.getValueType().isInteger()
- && "Must decompose to an integer type!");
return GetPromotedInteger(Op);
}
@@ -1556,11 +1554,10 @@ void DAGTypeLegalizer::ExpandIntRes_ADDSUBE(SDNode *N,
// use the new one.
ReplaceValueWith(SDValue(N, 1), Hi.getValue(1));
}
+
void DAGTypeLegalizer::ExpandIntRes_MERGE_VALUES(SDNode *N,
- SDValue &Lo, SDValue &Hi) {
+ SDValue &Lo, SDValue &Hi) {
SDValue Res = DecomposeMERGE_VALUES(N);
- assert(Res.getValueType().isInteger()
- && "Cannot split a non-integer value.");
SplitInteger(Res, Lo, Hi);
}