Make sure to clear the LazyFunctionLoadMap after we ParseAllFunctionBodies.

Otherwise, clients who call ParseAllFunctionBodies will attempt to parse
the function bodies twice, which is (uh) very very bad (tm).

This fixes gccld on python.

llvm-svn: 20152
This commit is contained in:
Chris Lattner 2005-02-13 17:48:18 +00:00
parent 1b9f9c5f67
commit 147c561432
1 changed files with 2 additions and 1 deletions

View File

@ -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