mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Small cleanup: Remove unnecessary calls to getDef(), mostly in dyn_cast<>(...).
Swift SVN r16235
This commit is contained in:
@@ -400,7 +400,7 @@ public:
|
||||
bool visitApplyInst(ApplyInst *AI) {
|
||||
// If we don't have a function ref inst, just return false. We do not have
|
||||
// interesting callees.
|
||||
auto *FRI = dyn_cast<FunctionRefInst>(AI->getCallee().getDef());
|
||||
auto *FRI = dyn_cast<FunctionRefInst>(AI->getCallee());
|
||||
if (!FRI)
|
||||
return false;
|
||||
|
||||
@@ -420,7 +420,7 @@ public:
|
||||
}
|
||||
|
||||
bool visitPartialApplyInst(PartialApplyInst *PAI) {
|
||||
auto *FRI = dyn_cast<FunctionRefInst>(PAI->getCallee().getDef());
|
||||
auto *FRI = dyn_cast<FunctionRefInst>(PAI->getCallee());
|
||||
if (!FRI)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user