forked from OSchip/llvm-project
Pass llvm/test/Regression/CodeGen/Generic/debug-info.ll.
llvm-svn: 27158
This commit is contained in:
parent
ed728c1291
commit
6e792f9ff8
|
@ -1338,6 +1338,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