mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
Remove a redundant dyn_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
88deac4007
commit
aeeb71e276
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user