projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdf039
)
simplify
author
Gabor Greif
<ggreif@gmail.com>
Thu, 22 Jul 2010 13:07:39 +0000
(13:07 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Thu, 22 Jul 2010 13:07:39 +0000
(13:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109101
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/PartialSpecialization.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/PartialSpecialization.cpp
b/lib/Transforms/IPO/PartialSpecialization.cpp
index 4e72d51c7d9f44a4aa7369e589c471b91cb2acac..d46879f5093f826a4b7c1d31009eeec446d98388 100644
(file)
--- a/
lib/Transforms/IPO/PartialSpecialization.cpp
+++ b/
lib/Transforms/IPO/PartialSpecialization.cpp
@@
-83,10
+83,9
@@
SpecializeFunction(Function* F,
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