--- PreSelection.cpp	27 Oct 2002 14:04:37 -0000	1.1
+++ PreSelection.cpp	27 Oct 2002 15:52:44 -0000
@@ -201,7 +201,7 @@
 
     case Instruction::GetElementPtr:
 #     ifndef NDEBUG
-      assert(find_if(++CE->op_begin(), CE->op_end(),nonConstant) == CE->op_end()
+      assert(find_if(CE->op_begin() + 1, CE->op_end(),nonConstant) == CE->op_end()
              && "All indices in ConstantExpr getelementptr must be constant!");
 #     endif
       getArg1 = CE->getOperand(0);
@@ -210,7 +210,7 @@
       else if (GetElementPtrInst* gep = getGlobalAddr(getArg1, insertBefore))
         getArg1 = gep;
       return new GetElementPtrInst(getArg1,
-                          std::vector<Value*>(++CE->op_begin(), CE->op_end()),
+                          std::vector<Value*>(CE->op_begin() + 1, CE->op_end()),
                           "constantGEP", &insertBefore);
 
     default:                            // must be a binary operator
