diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-14 20:29:30 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-14 20:29:30 +0000 |
commit | 11193bee277ec4263eafe5884401efaabced9592 (patch) | |
tree | 90037cc996674e99ef510dbb16b604765350fe79 | |
parent | 03b5528c4741b6ff052dc26195042f1a3ef68dac (diff) | |
download | external_llvm-11193bee277ec4263eafe5884401efaabced9592.zip external_llvm-11193bee277ec4263eafe5884401efaabced9592.tar.gz external_llvm-11193bee277ec4263eafe5884401efaabced9592.tar.bz2 |
Really silence compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51126 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3cc8152..4998613 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -807,8 +807,8 @@ static SDOperand getCopyFromParts(SelectionDAG &DAG, unsigned NumRegs = TLI.getVectorTypeBreakdown(ValueVT, IntermediateVT, NumIntermediates, RegisterVT); - NumRegs; // Silence a compiler warning. assert(NumRegs == NumParts && "Part count doesn't match vector breakdown!"); + NumParts = NumRegs; // Silence a compiler warning. assert(RegisterVT == PartVT && "Part type doesn't match vector breakdown!"); assert(RegisterVT == Parts[0].getValueType() && "Part type doesn't match part!"); @@ -1024,10 +1024,10 @@ static void getCopyToParts(SelectionDAG &DAG, DAG.getTargetLoweringInfo() .getVectorTypeBreakdown(ValueVT, IntermediateVT, NumIntermediates, RegisterVT); - NumRegs; // Silence a compiler warning. unsigned NumElements = MVT::getVectorNumElements(ValueVT); assert(NumRegs == NumParts && "Part count doesn't match vector breakdown!"); + NumParts = NumRegs; // Silence a compiler warning. assert(RegisterVT == PartVT && "Part type doesn't match vector breakdown!"); // Split the vector into intermediate operands. |