diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index cf68d678e2c..6876cf70b53 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -1769,9 +1769,10 @@ void BytecodeReader::ParseAllFunctionBodies() { Function* Func = Fi->first; BlockStart = At = Fi->second.Buf; BlockEnd = Fi->second.EndBuf; - this->ParseFunctionBody(Func); + ParseFunctionBody(Func); ++Fi; } + LazyFunctionLoadMap.clear(); } /// Parse the global type list