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

@@ -144,7 +144,7 @@ bool SROAMemoryUseAnalyzer::analyze() {
// If we store the alloca pointer, we cannot analyze its uses so bail...
// It is ok if we store into the alloca pointer though.
if (auto *SI = dyn_cast<StoreInst>(User)) {
if (SI->getDest().getDef() == AI) {
if (SI->getDest() == AI) {
DEBUG(llvm::dbgs() << " Found a store into the "
"projection.\n");
Stores.push_back(SI);