File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3659,7 +3659,8 @@ class OpaqueTypeDecl final :
3659
3659
3660
3660
// / The substitutions that map the generic parameters of the opaque type to
3661
3661
// / the unique underlying types, when that information is known.
3662
- std::optional<SubstitutionMap> getUniqueUnderlyingTypeSubstitutions () const ;
3662
+ std::optional<SubstitutionMap> getUniqueUnderlyingTypeSubstitutions (
3663
+ bool typeCheckFunctionBodies=true ) const ;
3663
3664
3664
3665
void setUniqueUnderlyingTypeSubstitutions (SubstitutionMap subs) {
3665
3666
assert (!UniqueUnderlyingType.has_value () && " resetting underlying type?!" );
Original file line number Diff line number Diff line change @@ -10840,7 +10840,11 @@ bool OpaqueTypeDecl::exportUnderlyingType() const {
10840
10840
}
10841
10841
10842
10842
std::optional<SubstitutionMap>
10843
- OpaqueTypeDecl::getUniqueUnderlyingTypeSubstitutions () const {
10843
+ OpaqueTypeDecl::getUniqueUnderlyingTypeSubstitutions (
10844
+ bool typeCheckFunctionBodies) const {
10845
+ if (!typeCheckFunctionBodies)
10846
+ return UniqueUnderlyingType;
10847
+
10844
10848
return evaluateOrDefault (getASTContext ().evaluator ,
10845
10849
UniqueUnderlyingTypeSubstitutionsRequest{this }, {});
10846
10850
}
You can’t perform that action at this time.
0 commit comments