File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
stdlib/public/RemoteInspection Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1559,7 +1559,7 @@ std::string TypeConverter::takeLastError() {
1559
1559
if (!LastError.first )
1560
1560
return {};
1561
1561
std::stringstream s;
1562
- s << " : " << LastError. first ;
1562
+ s << LastError. first << " : " ;
1563
1563
if (LastError.second )
1564
1564
LastError.second ->dump (s);
1565
1565
@@ -2680,8 +2680,11 @@ TypeConverter::getTypeInfo(const TypeRef *TR,
2680
2680
// Compute the result and cache it
2681
2681
auto *TI = LowerType (*this , ExternalTypeInfo).visit (TR);
2682
2682
Cache.insert ({{TR, ExternalTypeInfoId}, TI});
2683
- if (!TI && ErrorCache)
2683
+ if (!TI && ErrorCache) {
2684
+ if (!LastError.first )
2685
+ LastError = {" cannot decode or find" , TR};
2684
2686
ErrorCache->insert ({{TR, ExternalTypeInfoId}, LastError});
2687
+ }
2685
2688
2686
2689
RecursionCheck.erase (TR);
2687
2690
You can’t perform that action at this time.
0 commit comments