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:
b0c9b93
)
Simplify CallInst::hasByValArgument using a new method.
author
Duncan Sands
<baldrick@free.fr>
Mon, 14 Jan 2008 19:57:00 +0000
(19:57 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Mon, 14 Jan 2008 19:57:00 +0000
(19:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45974
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index b569f01d78c02b09c49b00bc4db7c887f3e5d418..ca9ea3bfa3be7b5daa2ae573dad999c7d6cb1ca3 100644
(file)
--- a/
lib/VMCore/Instructions.cpp
+++ b/
lib/VMCore/Instructions.cpp
@@
-406,10
+406,7
@@
bool CallInst::isStructReturn() const {
/// @brief Determine if any call argument is an aggregate passed by value.
bool CallInst::hasByValArgument() const {
- for (unsigned i = 1, e = getNumOperands(); i != e; ++i)
- if (paramHasAttr(i, ParamAttr::ByVal))
- return true;
- return false;
+ return ParamAttrs && ParamAttrs->hasAttrSomewhere(ParamAttr::ByVal);
}
void CallInst::setDoesNotThrow(bool doesNotThrow) {