[llvm-commits] [llvm] r53607 - /llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
Matthijs Kooijman
matthijs at stdin.nl
Tue Jul 15 06:39:09 PDT 2008
Author: matthijs
Date: Tue Jul 15 08:39:08 2008
New Revision: 53607
URL: http://llvm.org/viewvc/llvm-project?rev=53607&view=rev
Log:
Don't use isa when we can reuse a previous dyn_cast.
Modified:
llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
Modified: llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp?rev=53607&r1=53606&r2=53607&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp Tue Jul 15 08:39:08 2008
@@ -794,9 +794,8 @@
// 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();
More information about the llvm-commits
mailing list