From f4321a3a438833dade457e24da6e1e6907cabcd5 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Mon, 13 Mar 2006 13:07:37 +0000 Subject: Handle the removal of the debug chain. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26729 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Reader/Reader.cpp') diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 501bd62d6e..61b194ab39 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(II)) { + II != IE;) + if (CallInst* CI = dyn_cast(II++)) { std::map::iterator FI = upgradedFunctions.find(CI->getCalledFunction()); if (FI != upgradedFunctions.end()) -- cgit v1.2.3