From 84012a93ef56c489059d28b1fdc0c4e5d14d160e Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 22 Jul 2010 13:07:39 +0000 Subject: simplify llvm-svn: 109101 --- llvm/lib/Transforms/IPO/PartialSpecialization.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/IPO/PartialSpecialization.cpp b/llvm/lib/Transforms/IPO/PartialSpecialization.cpp index 4e72d51c7d9..d46879f5093 100644 --- a/llvm/lib/Transforms/IPO/PartialSpecialization.cpp +++ b/llvm/lib/Transforms/IPO/PartialSpecialization.cpp @@ -83,10 +83,9 @@ SpecializeFunction(Function* F, Value::use_iterator i = ii; ++ii; User *U = *i; - if (isa(U) || isa(U)) { - CallSite CS(cast(U)); + CallSite CS(U); + if (CS) { if (CS.getCalledFunction() == F) { - SmallVector args; // Assemble the non-specialized arguments for the updated callsite. // In the process, make sure that the specialized arguments are -- cgit v1.2.3