Make the side-numbering of instructions used by metadata (which is needed to

keep track of instructions that return void) per-function. This fixes PR5278.

This breaks backwards compatibility with the metadata format. That's okay
because we haven't released the metadata bitcode yet.

llvm-svn: 97132
This commit is contained in:
Nick Lewycky committed 2010-02-25 08:30:17 +00:00
1 parent ee29cc3b66
commit a72e1af8bf
2 files changed
+2 -2

No files matched your search

@@ -1622,6 +1622,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
if (Stream.EnterSubBlock(bitc::FUNCTION_BLOCK_ID))
return Error("Malformed block record");
InstructionList.clear();
unsigned ModuleValueListSize = ValueList.size();
// Add all the function arguments to the value table.