mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Simplify CallInst::hasByValArgument using a new method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0c9b93bb4
commit
15ea48c9ce
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user