mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Pass llvm/test/Regression/CodeGen/Generic/debug-info.ll.
llvm-svn: 27158
This commit is contained in:
parent
3d518334b9
commit
c195040bcf
@ -1337,6 +1337,13 @@ bool DIVerifier::Verify(GlobalVariable *GV) {
|
||||
|
||||
// Assume validity for the time being (recursion.)
|
||||
ValiditySlot = Valid;
|
||||
|
||||
// Make sure the global is internal or link once (anchor.)
|
||||
if (GV->getLinkage() != GlobalValue::InternalLinkage &&
|
||||
GV->getLinkage() != GlobalValue::LinkOnceLinkage) {
|
||||
ValiditySlot = Invalid;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the Tag
|
||||
unsigned Tag = DebugInfoDesc::TagFromGlobal(GV);
|
||||
|
Loading…
Reference in New Issue
Block a user