Commit 59c6f5a3 by Mircea Trofin

Removing 3 gcc warnings:

- redundant ';' after namespace decls - mix of enums and integer values - use of && insteand of & for bitwise operations BUG=NONE R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1062803005
parent 9c1d3869
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
namespace llvm { namespace llvm {
class QueueStreamer; class QueueStreamer;
class raw_fd_ostream; class raw_fd_ostream;
}; }
namespace Ice { namespace Ice {
......
...@@ -141,7 +141,9 @@ public: ...@@ -141,7 +141,9 @@ public:
TInstrSet = NewValue; TInstrSet = NewValue;
} }
VerboseMask getVerbose() const { return ALLOW_DUMP ? VMask : IceV_None; } VerboseMask getVerbose() const {
return ALLOW_DUMP ? VMask : (VerboseMask)IceV_None;
}
void setVerbose(VerboseMask NewValue) { VMask = NewValue; } void setVerbose(VerboseMask NewValue) { VMask = NewValue; }
// IceString accessors. // IceString accessors.
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
namespace llvm { namespace llvm {
class DataStreamer; class DataStreamer;
class raw_fd_ostream; class raw_fd_ostream;
}; }
namespace Ice { namespace Ice {
......
...@@ -112,8 +112,8 @@ struct TypePropertyFields { ...@@ -112,8 +112,8 @@ struct TypePropertyFields {
const TypePropertyFields TypePropertiesTable[] = { const TypePropertyFields TypePropertiesTable[] = {
#define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, CompareResult) \ #define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, CompareResult) \
{ \ { \
IsVec, IsInt, IsInt && !IsVec, IsInt && IsVec, IsIntArith, IsFloat, \ IsVec, IsInt, IsInt & !IsVec, IsInt & IsVec, IsIntArith, IsFloat, \
IsFloat && !IsVec, IsFloat && IsVec, IsLoadStore, CompareResult \ IsFloat & !IsVec, IsFloat & IsVec, IsLoadStore, CompareResult \
} \ } \
, ,
ICETYPE_PROPS_TABLE ICETYPE_PROPS_TABLE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment