mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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
This commit is contained in:
parent
df30bdb3a7
commit
32d2c5de64
@ -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
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
/// hasNoSignedWrap - Test whether this operation is known to never
|
||||
/// undergo signed overflow, aka the nsw property.
|
||||
bool hasNoSignedWrap() const {
|
||||
return SubclassOptionalData & NoSignedWrap;
|
||||
return static_cast<bool>(SubclassOptionalData & NoSignedWrap);
|
||||
}
|
||||
|
||||
static inline bool classof(const OverflowingBinaryOperator *) { return true; }
|
||||
|
Loading…
Reference in New Issue
Block a user