File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -1190,28 +1190,7 @@ class ReflectionContext
1190
1190
if (!ConformancesAddr)
1191
1191
return " unable to read value of " + ConformancesPointerName;
1192
1192
1193
- auto Root = getReader ().readPointer (ConformancesAddr->getResolvedAddress (),
1194
- sizeof (StoredPointer));
1195
- auto ReaderCount = Root->getResolvedAddress ().getAddressData ();
1196
-
1197
- // ReaderCount will be the root pointer if the conformance cache is a
1198
- // ConcurrentMap. It's very unlikely that there would ever be more readers
1199
- // than the least valid pointer value, so compare with that to distinguish.
1200
- // TODO: once the old conformance cache is gone for good, remove that code.
1201
- uint64_t LeastValidPointerValue;
1202
- if (!getReader ().queryDataLayout (
1203
- DataLayoutQueryType::DLQ_GetLeastValidPointerValue, nullptr ,
1204
- &LeastValidPointerValue)) {
1205
- return std::string (" unable to query least valid pointer value" );
1206
- }
1207
-
1208
- if (ReaderCount < LeastValidPointerValue)
1209
- IterateConformanceTable (ConformancesAddr->getResolvedAddress (), Call);
1210
- else {
1211
- // The old code has the root address at this location.
1212
- auto RootAddr = ReaderCount;
1213
- iterateConformanceTree (RootAddr, Call);
1214
- }
1193
+ IterateConformanceTable (ConformancesAddr->getResolvedAddress (), Call);
1215
1194
return llvm::None;
1216
1195
}
1217
1196
You can’t perform that action at this time.
0 commit comments