From aeeb71e276fb8509295cf3e62861e868e65c7db7 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 30 Jan 2015 19:42:59 +0000 Subject: [PATCH] Remove a redundant dyn_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227605 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/InlineFunction.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index a28c56ce708..c2ef1ace967 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -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(I)) - replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false); + for (auto &AI : IFI.StaticAllocas) + replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false); } bool InlinedMustTailCalls = false;