[llvm-commits] CVS: llvm/lib/CodeGen/PreOpts/PreSelection.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 13 14:40:09 PDT 2002


Changes in directory llvm/lib/CodeGen/PreOpts:

PreSelection.cpp updated: 1.3 -> 1.4

---
Log message:

  - Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
    reflect the fact that it's a range being defined.


---
Diffs of the changes:

Index: llvm/lib/CodeGen/PreOpts/PreSelection.cpp
diff -u llvm/lib/CodeGen/PreOpts/PreSelection.cpp:1.3 llvm/lib/CodeGen/PreOpts/PreSelection.cpp:1.4
--- llvm/lib/CodeGen/PreOpts/PreSelection.cpp:1.3	Sat Oct 12 19:01:57 2002
+++ llvm/lib/CodeGen/PreOpts/PreSelection.cpp	Sun Oct 13 14:39:11 2002
@@ -214,8 +214,8 @@
                           "constantGEP", &insertBefore);
 
     default:                            // must be a binary operator
-      assert(CE->getOpcode() >= Instruction::FirstBinaryOp &&
-             CE->getOpcode() <  Instruction::NumBinaryOps &&
+      assert(CE->getOpcode() >= Instruction::BinaryOpsBegin &&
+             CE->getOpcode() <  Instruction::BinaryOpsEnd &&
              "Unrecognized opcode in ConstantExpr");
       getArg1 = CE->getOperand(0);
       if (ConstantExpr* CEarg = dyn_cast<ConstantExpr>(getArg1))





More information about the llvm-commits mailing list