mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 22:01:35 +00:00
Revert "Fix bitcode auto-upgrade when using bitcode lazy loading"
This reverts commit r278610. Tests are broken llvm-svn: 278613
This commit is contained in:
1 parent
1b1272f515
commit
466a64e298
3 files changed
+9
-32
No files matched your search
@@ -3634,6 +3634,15 @@ std::error_code BitcodeReader::parseModule(uint64_t ResumeBit,
|
||||
return EC;
|
||||
break;
|
||||
case bitc::FUNCTION_BLOCK_ID:
|
||||
// If this is the first function body we've seen, reverse the
|
||||
// FunctionsWithBodies list.
|
||||
if (!SeenFirstFunctionBody) {
|
||||
std::reverse(FunctionsWithBodies.begin(), FunctionsWithBodies.end());
|
||||
if (std::error_code EC = globalCleanup())
|
||||
return EC;
|
||||
SeenFirstFunctionBody = true;
|
||||
}
|
||||
|
||||
if (VSTOffset > 0) {
|
||||
// If we have a VST forward declaration record, make sure we
|
||||
// parse the VST now if we haven't already. It is needed to
|
||||
@@ -3660,15 +3669,6 @@ std::error_code BitcodeReader::parseModule(uint64_t ResumeBit,
|
||||
}
|
||||
}
|
||||
|
||||
// If this is the first function body we've seen, reverse the
|
||||
// FunctionsWithBodies list.
|
||||
if (!SeenFirstFunctionBody) {
|
||||
std::reverse(FunctionsWithBodies.begin(), FunctionsWithBodies.end());
|
||||
if (std::error_code EC = globalCleanup())
|
||||
return EC;
|
||||
SeenFirstFunctionBody = true;
|
||||
}
|
||||
|
||||
// Support older bitcode files that did not have the function
|
||||
// index in the VST, nor a VST forward declaration record, as
|
||||
// well as anonymous functions that do not have VST entries.
|
||||
|
||||
Reference in new issue
Block a user