DebugInfo: Fix rangesBaseAddress DICompileUnit bitcode serialization/deserialization

Follow-up to r346788 review feedback from Adrian Prantl.
This commit is contained in:
David Blaikie
2019-12-27 17:18:50 -08:00
parent a33cab0f06
commit c51b45e32e
5 changed files with 7 additions and 6 deletions

View File

@@ -1457,7 +1457,7 @@ Error MetadataLoader::MetadataLoaderImpl::parseOneMetadata(
break;
}
case bitc::METADATA_COMPILE_UNIT: {
if (Record.size() < 14 || Record.size() > 19)
if (Record.size() < 14 || Record.size() > 20)
return error("Invalid record");
// Ignore Record[0], which indicates whether this compile unit is