diff options
Diffstat (limited to 'include/llvm/Support/CallSite.h')
-rw-r--r-- | include/llvm/Support/CallSite.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index d2c47b53ed..f4324cb7ba 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -268,9 +268,10 @@ public: paramHasAttr(ArgNo + 1, Attribute::InAlloca); } - /// @brief Determine if there are any inalloca arguments. + /// @brief Determine if there are is an inalloca argument. Only the last + /// argument can have the inalloca attribute. bool hasInAllocaArgument() const { - return getAttributes().hasAttrSomewhere(Attribute::InAlloca); + return paramHasAttr(arg_size(), Attribute::InAlloca); } bool doesNotAccessMemory(unsigned ArgNo) const { |