diff options
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 501bd62..61b194a 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -1861,8 +1861,8 @@ void BytecodeReader::ParseFunctionBody(Function* F) { if (!upgradedFunctions.empty()) { for (Function::iterator BI = F->begin(), BE = F->end(); BI != BE; ++BI) for (BasicBlock::iterator II = BI->begin(), IE = BI->end(); - II != IE; ++II) - if (CallInst* CI = dyn_cast<CallInst>(II)) { + II != IE;) + if (CallInst* CI = dyn_cast<CallInst>(II++)) { std::map<Function*,Function*>::iterator FI = upgradedFunctions.find(CI->getCalledFunction()); if (FI != upgradedFunctions.end()) |