We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3428ae commit d9cf437Copy full SHA for d9cf437
lib/SILOptimizer/Mandatory/AddressLowering.h
@@ -265,6 +265,12 @@ class ValueStorageMap {
265
/// Given storage for a projection, return the projected storage by following
266
/// single level of projected storage. The returned storage may
267
/// recursively be a another projection.
268
+ const ValueStoragePair &
269
+ getProjectedStorage(const ValueStorage &storage) const {
270
+ assert(storage.isProjection());
271
+ return valueVector[storage.projectedStorageID];
272
+ }
273
+
274
ValueStoragePair &getProjectedStorage(const ValueStorage &storage) {
275
assert(storage.isProjection());
276
return valueVector[storage.projectedStorageID];
0 commit comments