diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Instructions.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 55ab1b7..bed828a 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1356,7 +1356,10 @@ public: /// @brief Determine if any call argument is an aggregate passed by value. bool hasByValArgument() const { - return AttributeList.hasAttrSomewhere(Attribute::ByVal); + for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I) + if (AttributeList.getAttributesAtIndex(I).hasByValAttr()) + return true; + return false; } /// getCalledFunction - Return the function called, or null if this is an @@ -3128,7 +3131,10 @@ public: /// @brief Determine if any call argument is an aggregate passed by value. bool hasByValArgument() const { - return AttributeList.hasAttrSomewhere(Attribute::ByVal); + for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I) + if (AttributeList.getAttributesAtIndex(I).hasByValAttr()) + return true; + return false; } /// getCalledFunction - Return the function called, or null if this is an |