Chromium Code Reviews| Index: src/IceOperand.h |
| diff --git a/src/IceOperand.h b/src/IceOperand.h |
| index a20308660ced41885cc20c2d8cdf756a5ee4ffe3..d3306736e9a65d3dd206219d979310c06ebd211c 100644 |
| --- a/src/IceOperand.h |
| +++ b/src/IceOperand.h |
| @@ -443,6 +443,8 @@ public: |
| enum { NoRegisterValue = std::numeric_limits<BaseType>::max() }; |
| const static RegNumT NoRegister /* = NoRegisterValue */; |
| + bool hasValue() const {return Value == NoRegisterValue;} |
|
Jim Stichnoth
2016/02/12 03:16:51
You really need "return Value != NoRegisterValue;"
|
| + |
| private: |
| BaseType Value = NoRegisterValue; |
| static BaseType Limit; |