mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add error reporting when looking up types by demangled name.
This commit is contained in:
@@ -632,9 +632,10 @@ public:
|
||||
SubstitutionMap substitutions,
|
||||
unsigned ordinal) override {
|
||||
auto underlyingType = Reader
|
||||
.readUnderlyingTypeForOpaqueTypeDescriptor(opaqueDescriptor.getAddressData(),
|
||||
ordinal);
|
||||
|
||||
.readUnderlyingTypeForOpaqueTypeDescriptor(
|
||||
opaqueDescriptor.getAddressData(), ordinal)
|
||||
.getType();
|
||||
|
||||
if (!underlyingType)
|
||||
return getFailure<Type>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user