mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make sure we always have a SILFunction for region-based isolation checking
Some values (such as `undef`) might not be associated with a function.
This commit is contained in:
@@ -299,7 +299,11 @@ private:
|
||||
/// This only includes function arguments.
|
||||
std::vector<TrackableValueID> neverTransferredValueIDs;
|
||||
|
||||
SILFunction *fn;
|
||||
|
||||
public:
|
||||
RegionAnalysisValueMap(SILFunction *fn) : fn(fn) { }
|
||||
|
||||
/// Returns the value for this instruction if it isn't a fake "represenative
|
||||
/// value" to inject actor isolatedness. Asserts in such a case.
|
||||
SILValue getRepresentative(Element trackableValueID) const;
|
||||
|
||||
Reference in New Issue
Block a user