mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
IR: Use getRawScope() when verifying
Fix a couple of places in the Verifier that call `getScope()` instead of `getRawScope()`. Both DIDerivedType::getScope and DICompositeType::getScope return a DITypeRef right now (which wraps a Metadata*) so I don't think there's currently an observable bug. I found this because a future commit that will change them to cast to DIScope*. llvm-svn: 266552
This commit is contained in:
parent
157d1c4576
commit
3232814721
@ -860,7 +860,7 @@ void Verifier::visitDIDerivedType(const DIDerivedType &N) {
|
||||
N.getExtraData());
|
||||
}
|
||||
|
||||
Assert(isScopeRef(N, N.getScope()), "invalid scope", &N, N.getScope());
|
||||
Assert(isScopeRef(N, N.getScope()), "invalid scope", &N, N.getRawScope());
|
||||
Assert(isTypeRef(N, N.getBaseType()), "invalid base type", &N,
|
||||
N.getBaseType());
|
||||
}
|
||||
@ -890,7 +890,7 @@ void Verifier::visitDICompositeType(const DICompositeType &N) {
|
||||
N.getTag() == dwarf::DW_TAG_class_type,
|
||||
"invalid tag", &N);
|
||||
|
||||
Assert(isScopeRef(N, N.getScope()), "invalid scope", &N, N.getScope());
|
||||
Assert(isScopeRef(N, N.getScope()), "invalid scope", &N, N.getRawScope());
|
||||
Assert(isTypeRef(N, N.getBaseType()), "invalid base type", &N,
|
||||
N.getBaseType());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user