This is an archive of the discontinued LLVM Phabricator instance.

Fix bitcode upgrade for DIGlobalVariables with a var: field.
ClosedPublic

Authored by aprantl on Feb 7 2017, 4:30 PM.

Details

Summary

This is a follow-up to https://reviews.llvm.org/D29349.
It turns out that NeedUpgradeToDIGlobalVariableExpression is always necessary when we encountered a version==0 record because it may always be referenced via a list of globals in a DICompileUnit. My tests weren't good enough to catch this though. To trigger this case, we need much older bitcode produced by LLVM around version 3.7.

Diff Detail

Repository
rL LLVM

Event Timeline

aprantl created this revision.Feb 7 2017, 4:30 PM
mehdi_amini accepted this revision.Feb 8 2017, 12:58 AM

Great: at least we increased the coverage :)

This revision is now accepted and ready to land.Feb 8 2017, 12:58 AM
This revision was automatically updated to reflect the committed changes.