[llvm] r227605 - Remove a redundant dyn_cast.
Adrian Prantl
aprantl at apple.com
Fri Jan 30 11:42:59 PST 2015
Author: adrian
Date: Fri Jan 30 13:42:59 2015
New Revision: 227605
URL: http://llvm.org/viewvc/llvm-project?rev=227605&view=rev
Log:
Remove a redundant dyn_cast.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=227605&r1=227604&r2=227605&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Fri Jan 30 13:42:59 2015
@@ -1114,9 +1114,8 @@ bool llvm::InlineFunction(CallSite CS, I
}
// 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;
More information about the llvm-commits
mailing list