mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +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,8 +1114,7 @@ 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))
|
||||
for (auto &AI : IFI.StaticAllocas)
|
||||
replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user