diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-28 19:04:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-28 19:04:49 +0000 |
commit | f35b29765b2c1393aa479cd2d9c82d99c18d7430 (patch) | |
tree | fb45cd2dcc3b7f12b76fb9f1273cfd0a4c5fd62c /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | d732a2915bcfe52b5bcbd364ca45c426f3b214af (diff) |
Add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 218ed8997f..47c9cbc017 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -634,6 +634,8 @@ SDOperand SelectionDAG::getZeroExtendInReg(SDOperand Op, MVT::ValueType VT) { SDOperand SelectionDAG::getConstant(uint64_t Val, MVT::ValueType VT) { assert(MVT::isInteger(VT) && "Cannot create FP integer constant!"); + assert(!MVT::isVector(VT) && "Cannot create Vector ConstantSDNodes!"); + // Mask out any bits that are not valid for this constant. if (VT != MVT::i64) Val &= ((uint64_t)1 << MVT::getSizeInBits(VT)) - 1; |