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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user