diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-07-15 13:39:08 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-07-15 13:39:08 +0000 |
commit | 9c9418d0f36c8162f0a4f13193164a5509db0b5f (patch) | |
tree | 10281de88785fe896d050f4bf0e08edc93c82989 | |
parent | ddd1a79b6d9dafc7ebafea252266438f2b7c876a (diff) | |
download | external_llvm-9c9418d0f36c8162f0a4f13193164a5509db0b5f.zip external_llvm-9c9418d0f36c8162f0a4f13193164a5509db0b5f.tar.gz external_llvm-9c9418d0f36c8162f0a4f13193164a5509db0b5f.tar.bz2 |
Don't use isa when we can reuse a previous dyn_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53607 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index 40012d1..34e7329 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -794,9 +794,8 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) { // Replace by null for now. Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); } else { - assert(isa<StructType>(RetTy) && "Return type changed, but not into a" - "void. The old return type must have" - "been a struct!"); + assert(STy && "Return type changed, but not into a void. The old " + "return type must have been a struct!"); // The original return value was a struct, update all uses (which are // all extractvalue instructions, or uses that are unused themselves). for (Value::use_iterator I = Call->use_begin(), E = Call->use_end(); |