forked from OSchip/llvm-project
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:
parent
1b9f9c5f67
commit
147c561432
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue