mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Phi with incoming lexical value is lexical.
Added SILPhiArgument::isLexical. It's true for phis which have an incoming value that's lexical. Dispatch to this member from ValueBase::isLexical.
This commit is contained in:
@@ -241,6 +241,9 @@ public:
|
||||
/// result.
|
||||
bool isPhi() const;
|
||||
|
||||
/// Whether any of the values incoming to this phi are lexical.
|
||||
bool isLexical() const;
|
||||
|
||||
/// Return true if this block argument is a terminator result.
|
||||
bool isTerminatorResult() const { return !isPhi(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user