diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-25 20:27:36 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-25 20:27:36 +0000 |
commit | 429c75b8654b0d1069f1897375f5801a4c5de017 (patch) | |
tree | 967cb1c1c4e7b82ddd8cb9fe3b59b4f0fe004aa4 /include/llvm/Attributes.h | |
parent | 066de857f813991cb8985c7b10e130b32c878bd6 (diff) | |
download | llvm-429c75b8654b0d1069f1897375f5801a4c5de017.tar.gz llvm-429c75b8654b0d1069f1897375f5801a4c5de017.tar.bz2 llvm-429c75b8654b0d1069f1897375f5801a4c5de017.tar.xz |
Avoid warnings about implicit conversions to `bool' in MSVC. This time
for real.
Patch by Nathan Jeffords!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114796 91177308-0d34-0410-b5e6-96231b3b80d8
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 |