mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Added operator bool to ref.
This commit is contained in:
@@ -181,6 +181,8 @@ template <typename BitfieldContainer> struct BitfieldRef {
|
||||
return ref;
|
||||
}
|
||||
|
||||
explicit operator bool() { return ref; }
|
||||
|
||||
// Stack-allocated state must be nested relative to other node bitfields.
|
||||
struct StackState {
|
||||
BitfieldRef &ref;
|
||||
|
||||
Reference in New Issue
Block a user