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:
e1e520f
)
Small simplification.
author
Duncan Sands
<baldrick@free.fr>
Sun, 13 Jan 2008 08:12:17 +0000
(08:12 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Sun, 13 Jan 2008 08:12:17 +0000
(08:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45932
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/ArgumentPromotion.cpp
b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 9acd516123dad9d0d219b8029a16b8f34de30acb..073d752af0f9d98a6aab10765ef9a1995907ebe7 100644
(file)
--- a/
lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/
lib/Transforms/IPO/ArgumentPromotion.cpp
@@
-456,10
+456,7
@@
Function *ArgPromotion::DoPromotion(Function *F,
// Recompute the parameter attributes list based on the new arguments for
// the function.
- if (ParamAttrsVec.empty())
- PAL = 0;
- else
- PAL = ParamAttrsList::get(ParamAttrsVec);
+ PAL = ParamAttrsList::get(ParamAttrsVec);
// Work around LLVM bug PR56: the CWriter cannot emit varargs functions which
// have zero fixed arguments.