mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Handle undefs in a few utilities used in RLE (#59448)
This commit is contained in:
@@ -257,6 +257,8 @@ public:
|
||||
SILValue materialize(SILInstruction *Inst) {
|
||||
if (CoveringValue)
|
||||
return SILValue();
|
||||
if (isa<SILUndef>(Base))
|
||||
return Base;
|
||||
auto Val = Base;
|
||||
auto InsertPt = getInsertAfterPoint(Base).getValue();
|
||||
SILBuilderWithScope Builder(InsertPt);
|
||||
|
||||
Reference in New Issue
Block a user