mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ast] Represent a parameter's isolation at the SIL level.
I did this by adding flag on SILParamInfo. rdar://121387872
This commit is contained in:
@@ -5078,6 +5078,11 @@ getRawSILParameterInfoOptions(swift::SILParameterInfo::Options options) {
|
||||
result |= SILParameterInfoFlags::NotDifferentiable;
|
||||
}
|
||||
|
||||
if (options.contains(SILParameterInfo::Isolated)) {
|
||||
options -= SILParameterInfo::Isolated;
|
||||
result |= SILParameterInfoFlags::Isolated;
|
||||
}
|
||||
|
||||
// If we still have options left, this code is out of sync... return none.
|
||||
if (bool(options))
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user