diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-26 05:29:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-26 05:29:34 +0000 |
commit | e7fa1f2a49d6f7da4c39d34593335e4f1fba9932 (patch) | |
tree | cfe95bd65fd6a41ba5a224e9716817f4244ea948 /lib/Target/CellSPU | |
parent | e3a85838dafdc510c4cbb45c01305b612f23b20e (diff) | |
download | external_llvm-e7fa1f2a49d6f7da4c39d34593335e4f1fba9932.zip external_llvm-e7fa1f2a49d6f7da4c39d34593335e4f1fba9932.tar.gz external_llvm-e7fa1f2a49d6f7da4c39d34593335e4f1fba9932.tar.bz2 |
fix warning in -asserts mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r-- | lib/Target/CellSPU/SPUISelLowering.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp index 43248dd..c306298 100644 --- a/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/lib/Target/CellSPU/SPUISelLowering.cpp @@ -1503,7 +1503,6 @@ LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) { return SDValue(); // Wasn't a constant vector or splat exceeded min uint64_t SplatBits = APSplatBits.getZExtValue(); - unsigned SplatSize = SplatBitSize / 8; switch (VT.getSimpleVT()) { default: @@ -1514,17 +1513,17 @@ LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) { /*NOTREACHED*/ case MVT::v4f32: { uint32_t Value32 = uint32_t(SplatBits); - assert(SplatSize == 4 + assert(SplatBitSize == 32 && "LowerBUILD_VECTOR: Unexpected floating point vector element."); // NOTE: pretend the constant is an integer. LLVM won't load FP constants SDValue T = DAG.getConstant(Value32, MVT::i32); return DAG.getNode(ISD::BIT_CONVERT, dl, MVT::v4f32, - DAG.getNode(ISD::BUILD_VECTOR, dl, MVT::v4i32, T, T, T, T)); + DAG.getNode(ISD::BUILD_VECTOR, dl, MVT::v4i32, T,T,T,T)); break; } case MVT::v2f64: { uint64_t f64val = uint64_t(SplatBits); - assert(SplatSize == 8 + assert(SplatBitSize == 64 && "LowerBUILD_VECTOR: 64-bit float vector size > 8 bytes."); // NOTE: pretend the constant is an integer. LLVM won't load FP constants SDValue T = DAG.getConstant(f64val, MVT::i64); |