projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88deac4
)
Remove a redundant dyn_cast.
author
Adrian Prantl
<aprantl@apple.com>
Fri, 30 Jan 2015 19:42:59 +0000
(19:42 +0000)
committer
Adrian Prantl
<aprantl@apple.com>
Fri, 30 Jan 2015 19:42:59 +0000
(19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227605
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/InlineFunction.cpp
b/lib/Transforms/Utils/InlineFunction.cpp
index a28c56ce708bc8ec433b0135a701eb99150c4018..c2ef1ace967c81ee88032c9f0ec224c4099f25a0 100644
(file)
--- 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<AllocaInst>(I))
- replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false);
+ for (auto &AI : IFI.StaticAllocas)
+ replaceDbgDeclareForAlloca(AI, AI, DIB, /*Deref=*/false);
}
bool InlinedMustTailCalls = false;