mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
Avoid an unnecessary isa<Constant>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da6cdfa9e8
commit
3188cab989
@ -82,9 +82,7 @@ bool IPCP::processFunction(Function &F) {
|
||||
if (*AI == &F) return false; // Passes the function into itself
|
||||
|
||||
if (!ArgumentConstants[i].second) {
|
||||
if (isa<Constant>(*AI)) {
|
||||
Constant *C = dyn_cast<Constant>(*AI);
|
||||
|
||||
if (Constant *C = dyn_cast<Constant>(*AI)) {
|
||||
if (!ArgumentConstants[i].first)
|
||||
ArgumentConstants[i].first = C;
|
||||
else if (ArgumentConstants[i].first != C) {
|
||||
|
Loading…
Reference in New Issue
Block a user