diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-22 22:47:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-22 22:47:03 +0000 |
commit | 52ec3754382a2c47f94c647938286258681c5434 (patch) | |
tree | c8a9fae736d847508e19a8859805b7b212e4a117 /lib | |
parent | d3ada751c3e5f4e0de419c83e0f7975a050f893e (diff) | |
download | external_llvm-52ec3754382a2c47f94c647938286258681c5434.zip external_llvm-52ec3754382a2c47f94c647938286258681c5434.tar.gz external_llvm-52ec3754382a2c47f94c647938286258681c5434.tar.bz2 |
fix some warnings. This code needs to be de-tabified :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/CellSPU/SPUISelLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp index 6b6af64..27119f2 100644 --- a/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/lib/Target/CellSPU/SPUISelLowering.cpp @@ -566,7 +566,8 @@ LowerLOAD(SDOperand Op, SelectionDAG &DAG, const SPUSubtarget *ST) { NewOpC = (OpVT == MVT::i1 ? SPUISD::EXTRACT_I1_SEXT : SPUISD::EXTRACT_I8_SEXT); - } else if (ExtType == ISD::ZEXTLOAD) { + } else { + assert(ExtType == ISD::ZEXTLOAD); NewOpC = (OpVT == MVT::i1 ? SPUISD::EXTRACT_I1_ZEXT : SPUISD::EXTRACT_I8_ZEXT); @@ -1687,7 +1688,7 @@ static SDOperand LowerBUILD_VECTOR(SDOperand Op, SelectionDAG &DAG) { for (int j = 0; j < 4; ++j) { SDOperand V; bool process_upper, process_lower; - uint64_t val; + uint64_t val = 0; process_upper = (upper_special && (i & 1) == 0); process_lower = (lower_special && (i & 1) == 1); |