[llvm-commits] [llvm] r109101 - /llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp
Gabor Greif
ggreif at gmail.com
Thu Jul 22 06:07:39 PDT 2010
Author: ggreif
Date: Thu Jul 22 08:07:39 2010
New Revision: 109101
URL: http://llvm.org/viewvc/llvm-project?rev=109101&view=rev
Log:
simplify
Modified:
llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp
Modified: llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp?rev=109101&r1=109100&r2=109101&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp Thu Jul 22 08:07:39 2010
@@ -83,10 +83,9 @@
Value::use_iterator i = ii;
++ii;
User *U = *i;
- if (isa<CallInst>(U) || isa<InvokeInst>(U)) {
- CallSite CS(cast<Instruction>(U));
+ CallSite CS(U);
+ if (CS) {
if (CS.getCalledFunction() == F) {
-
SmallVector<Value*, 6> args;
// Assemble the non-specialized arguments for the updated callsite.
// In the process, make sure that the specialized arguments are
More information about the llvm-commits
mailing list