mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: remove SILValue::getDef and add a cast operator to ValueBase * as a repelacement. NFC.
This commit is contained in:
@@ -344,7 +344,7 @@ public:
|
||||
/// ValueIsPHI - Check if the instruction that defines the specified register
|
||||
/// is a PHI instruction.
|
||||
static SILArgument *ValueIsPHI(SILValue V, SILSSAUpdater *Updater) {
|
||||
return InstrIsPHI(V.getDef());
|
||||
return InstrIsPHI(V);
|
||||
}
|
||||
|
||||
/// Like ValueIsPHI but also check if the PHI has no source
|
||||
@@ -364,7 +364,7 @@ public:
|
||||
|
||||
SILValue V = Edges[PhiIdx];
|
||||
// Check for the 'not set' sentinel.
|
||||
if (V.getDef() != Updater->PHISentinel.get())
|
||||
if (V != Updater->PHISentinel.get())
|
||||
return nullptr;
|
||||
}
|
||||
return PHI;
|
||||
|
||||
Reference in New Issue
Block a user