diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index b569f01d78..ca9ea3bfa3 100644 --- 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) { |