Fix compilation problem on GCC 2.9x
authorChris Lattner <sabre@nondot.org>
Sat, 7 Jun 2003 20:29:58 +0000 (20:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Jun 2003 20:29:58 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6667 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/PoolAllocate.cpp

index ef64d431062fb546f1525bd6c38a96899a0f58b1..facfcbec8b8a1d7671e182ed221004d589fca704 100644 (file)
@@ -94,7 +94,7 @@ void PoolAllocate::buildIndirectFunctionSets(Module &M) {
                                  firstCalledF));
          if (Callees.size() > 1) {
            for (std::vector<GlobalValue*>::iterator CalleesI = 
-                  ++Callees.begin(), CalleesE = Callees.end(); 
+                  Callees.begin()+1, CalleesE = Callees.end(); 
                 CalleesI != CalleesE; ++CalleesI) {
              Function *calledF = dyn_cast<Function>(*CalleesI);
              FuncECs.unionSetsWith(firstCalledF, calledF);