Skip to content

Commit 3aff1f9

Browse files
[gardening] Replace dyn_cast<X>(y) with isa<X>(y) where appropriate
1 parent d4b36a8 commit 3aff1f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/IRGen/LoadableByAddress.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,11 @@ static bool modifiableApply(ApplySite applySite, irgen::IRGenModule &Mod) {
433433
return false;
434434
}
435435
auto callee = applySite.getCallee();
436-
if (dyn_cast<ProjectBlockStorageInst>(callee)) {
436+
if (isa<ProjectBlockStorageInst>(callee)) {
437437
return false;
438438
} else if (LoadInst *instr = dyn_cast<LoadInst>(callee)) {
439439
auto loadedSrcValue = instr->getOperand();
440-
if (dyn_cast<ProjectBlockStorageInst>(loadedSrcValue)) {
440+
if (isa<ProjectBlockStorageInst>(loadedSrcValue)) {
441441
return false;
442442
}
443443
}
@@ -1877,7 +1877,7 @@ void LoadableByAddress::run() {
18771877
}
18781878
} else if (auto *SI = dyn_cast<StoreInst>(&I)) {
18791879
auto dest = SI->getDest();
1880-
if (dyn_cast<ProjectBlockStorageInst>(dest)) {
1880+
if (isa<ProjectBlockStorageInst>(dest)) {
18811881
storeToBlockStorageInstrs.insert(SI);
18821882
}
18831883
}

0 commit comments

Comments
 (0)