forked from OSchip/llvm-project
Simplify CallInst::hasByValArgument using a new method.
llvm-svn: 45974
This commit is contained in:
parent
b5ca2e9fcb
commit
38987c1dcc
|
@ -406,10 +406,7 @@ bool CallInst::isStructReturn() const {
|
||||||
|
|
||||||
/// @brief Determine if any call argument is an aggregate passed by value.
|
/// @brief Determine if any call argument is an aggregate passed by value.
|
||||||
bool CallInst::hasByValArgument() const {
|
bool CallInst::hasByValArgument() const {
|
||||||
for (unsigned i = 1, e = getNumOperands(); i != e; ++i)
|
return ParamAttrs && ParamAttrs->hasAttrSomewhere(ParamAttr::ByVal);
|
||||||
if (paramHasAttr(i, ParamAttr::ByVal))
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CallInst::setDoesNotThrow(bool doesNotThrow) {
|
void CallInst::setDoesNotThrow(bool doesNotThrow) {
|
||||||
|
|
Loading…
Reference in New Issue