summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-04-20 17:27:09 +0000
committerBob Wilson <bob.wilson@apple.com>2009-04-20 17:27:09 +0000
commitda188ebbbd4561178fe6c6b26772d29f1e407c47 (patch)
tree8557455c0205f0fb921d9c4f93a5be246bb86e83 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent5dd2e29b670698b12c6b0911a75eecd1af8663d9 (diff)
downloadbcm5719-llvm-da188ebbbd4561178fe6c6b26772d29f1e407c47.tar.gz
bcm5719-llvm-da188ebbbd4561178fe6c6b26772d29f1e407c47.zip
Revise my previous change 68996 as suggested by Duncan.
llvm-svn: 69607
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index be0102c846a..33103cb9be5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2556,7 +2556,8 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, MVT VT,
if (Elt.getValueType() != VT) {
// If the vector element type is not legal, the BUILD_VECTOR operands
// are promoted and implicitly truncated. Make that explicit here.
- assert(Elt.getValueType() == TLI.getTypeToTransformTo(VT) &&
+ assert(VT.isInteger() && Elt.getValueType().isInteger() &&
+ VT.bitsLE(Elt.getValueType()) &&
"Bad type for BUILD_VECTOR operand");
Elt = getNode(ISD::TRUNCATE, DL, VT, Elt);
}
OpenPOWER on IntegriCloud