diff options
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r-- | include/llvm/Attributes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 580ae7339e..0325c89626 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -223,7 +223,7 @@ public: /// paramHasAttr - Return true if the specified parameter index has the /// specified attribute set. bool paramHasAttr(unsigned Idx, Attributes Attr) const { - return static_cast<bool>(getAttributes(Idx) & Attr); + return (getAttributes(Idx) & Attr) != 0; } /// getParamAlignment - Return the alignment for the specified function |