[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 13 09:48:31 PST 2005
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.152 -> 1.153
---
Log message:
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.
---
Diffs of the changes: (+2 -1)
Reader.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.152 llvm/lib/Bytecode/Reader/Reader.cpp:1.153
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.152 Sun Jan 30 19:11:13 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp Sun Feb 13 11:48:18 2005
@@ -1769,9 +1769,10 @@
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
More information about the llvm-commits
mailing list