diff options
author | Scott Michel <scottm@aero.org> | 2007-04-24 01:24:20 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2007-04-24 01:24:20 +0000 |
commit | 4cfa616ceef12f01aa20ef5fb6e29e25ef1b67e5 (patch) | |
tree | 9e60c637ba5f5f8c02d2a8ffda9d8af3bb940e33 /llvm/lib | |
parent | a272ead35a4b834fe0d6957c4d466dfa1985ce91 (diff) | |
download | bcm5719-llvm-4cfa616ceef12f01aa20ef5fb6e29e25ef1b67e5.tar.gz bcm5719-llvm-4cfa616ceef12f01aa20ef5fb6e29e25ef1b67e5.zip |
Use '-1U' where '-1UL' is obvious overkill, eliminating gcc warnings about
tests always being true in the process.
llvm-svn: 36387
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index f2833c736aa..6ce909b6ba8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1177,7 +1177,7 @@ void SelectionDAGLowering::visitSwitchCase(SelectionDAGISel::CaseBlock &CB) { /// visitJumpTable - Emit JumpTable node in the current MBB void SelectionDAGLowering::visitJumpTable(SelectionDAGISel::JumpTable &JT) { // Emit the code for the jump table - assert(JT.Reg != -1UL && "Should lower JT Header first!"); + assert(JT.Reg != -1U && "Should lower JT Header first!"); MVT::ValueType PTy = TLI.getPointerTy(); SDOperand Index = DAG.getCopyFromReg(getRoot(), JT.Reg, PTy); SDOperand Table = DAG.getJumpTable(JT.JTI, PTy); @@ -1544,7 +1544,7 @@ bool SelectionDAGLowering::handleJTSwitchCase(CaseRec& CR, // Set the jump table information so that we can codegen it as a second // MachineBasicBlock - SelectionDAGISel::JumpTable JT(-1UL, JTI, JumpTableBB, Default); + SelectionDAGISel::JumpTable JT(-1U, JTI, JumpTableBB, Default); SelectionDAGISel::JumpTableHeader JTH(First, Last, SV, CR.CaseBB, (CR.CaseBB == CurMBB)); if (CR.CaseBB == CurMBB) |