Remove a redundant dyn_cast.

llvm-svn: 227605
This commit is contained in:
Adrian Prantl 2015-01-30 19:42:59 +00:00
parent 3e2659eb92
commit 133e102b8f
1 changed files with 2 additions and 3 deletions

View File

@ -1114,9 +1114,8 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
}
// Move any dbg.declares describing the allocas into the entry basic block.
DIBuilder DIB(*Caller->getParent());
for (auto &I : IFI.StaticAllocas)
if (auto AI = dyn_cast<AllocaInst>(I))
replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false);
for (auto &AI : IFI.StaticAllocas)
replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false);
}
bool InlinedMustTailCalls = false;