forked from OSchip/llvm-project
[DwarfVerifier] Fixed -Wimplicit-fallthrough warning
Reviewers: JDevlieghere, RKSimon Reviewed By: JDevlieghere Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D52963 llvm-svn: 344176
This commit is contained in:
parent
103f0161b3
commit
7e30c91dca
|
@ -508,14 +508,15 @@ unsigned DWARFVerifier::verifyDebugInfoAttribute(const DWARFDie &Die,
|
|||
"incompatible tag " +
|
||||
TagString(RefTag));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DW_AT_type: {
|
||||
DWARFDie TypeDie = Die.getAttributeValueAsReferencedDie(DW_AT_type);
|
||||
if (TypeDie && !isType(TypeDie.getTag())) {
|
||||
ReportError("DIE has " + AttributeString(Attr) +
|
||||
" with incompatible tag " + TagString(TypeDie.getTag()));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue