mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Verifier: reuse getInlinedAt() result, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f16cb03bc1
commit
420047f37f
@ -680,9 +680,8 @@ void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) {
|
||||
|
||||
void Verifier::visitMDLocation(const MDLocation &N) {
|
||||
Assert1(N.getScope(), "location requires a valid scope", &N);
|
||||
if (N.getInlinedAt())
|
||||
Assert2(isa<MDLocation>(N.getInlinedAt()),
|
||||
"inlined-at should be a location", &N, N.getInlinedAt());
|
||||
if (auto *IA = N.getInlinedAt())
|
||||
Assert2(isa<MDLocation>(IA), "inlined-at should be a location", &N, IA);
|
||||
}
|
||||
|
||||
void Verifier::visitGenericDebugNode(const GenericDebugNode &N) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user