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

@@ -1846,7 +1846,7 @@ public:
/// If all SILValues have been set, we are complete.
bool isComplete() const {
return std::all_of(Values.begin(), Values.end(), [](SILValue V) -> bool {
return V.getDef();
return V;
});
}