SIL: remove SILValue::getDef and add a cast operator to ValueBase * as a repelacement. NFC.

This commit is contained in:
Erik Eckstein
2016-01-25 15:00:24 -08:00
parent aef0a11a7c
commit 74d44b74e7
63 changed files with 255 additions and 262 deletions

View File

@@ -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;