diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-23 16:59:44 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-23 16:59:44 +0000 |
commit | 32d2c5de6419a4f8dec260d9ab557004534e0970 (patch) | |
tree | 0c80a4546bef8da70317ec57c4580bc2cfe66e44 /include/llvm/Attributes.h | |
parent | df30bdb3a735a81b4182d80b870bc39846824396 (diff) | |
download | llvm-32d2c5de6419a4f8dec260d9ab557004534e0970.tar.gz llvm-32d2c5de6419a4f8dec260d9ab557004534e0970.tar.bz2 llvm-32d2c5de6419a4f8dec260d9ab557004534e0970.tar.xz |
Avoid warnings about conversions to `bool' in MS compilers.
Patch by Nathan Jeffords!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114662 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 1296d67d52..580ae7339e 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 getAttributes(Idx) & Attr; + return static_cast<bool>(getAttributes(Idx) & Attr); } /// getParamAlignment - Return the alignment for the specified function |