1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Don't use isa when we can reuse a previous dyn_cast.

llvm-svn: 53607
This commit is contained in:
Matthijs Kooijman 2008-07-15 13:39:08 +00:00
parent 4b75601340
commit 50a2233b45

View File

@ -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();