Small cleanup: Remove unnecessary calls to getDef(), mostly in dyn_cast<>(...).

Swift SVN r16235
This commit is contained in:
Mark Lacey
2014-04-11 23:05:16 +00:00
parent 5bfed07e16
commit 1452d24671
20 changed files with 56 additions and 56 deletions

View File

@@ -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;