diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-10-09 01:03:48 +0000 | 
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-10-09 01:03:48 +0000 | 
| commit | f8a18efe0a681f1e7812273a6c5fb7a0883c9fc7 (patch) | |
| tree | 6d29bd9776b4fe8127d82155aced8223d37d0657 /llvm | |
| parent | f1c60d6d047481e152fdde5e7c0f71057cff4fd0 (diff) | |
| download | bcm5719-llvm-f8a18efe0a681f1e7812273a6c5fb7a0883c9fc7.tar.gz bcm5719-llvm-f8a18efe0a681f1e7812273a6c5fb7a0883c9fc7.zip  | |
Remove a couple more 'hasAttrSomewhere' calls.
llvm-svn: 165470
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 55ab1b7ff08..bed828a8855 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/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  | 

