diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-28 15:43:18 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-03-02 00:19:35 +0800 |
commit | 5a54cd5c708227ad6982b06de7b799ece5065917 (patch) | |
tree | c8ee3f47e62584db34931e81878daf8fe0ce3824 /libsolidity/interface/EVMVersion.h | |
parent | 7f8e5733391bf2a02a7d1a701591dedddf6341b0 (diff) | |
download | dexon-solidity-5a54cd5c708227ad6982b06de7b799ece5065917.tar.gz dexon-solidity-5a54cd5c708227ad6982b06de7b799ece5065917.tar.zst dexon-solidity-5a54cd5c708227ad6982b06de7b799ece5065917.zip |
Only warn for shift instructions if not using constantinople
Diffstat (limited to 'libsolidity/interface/EVMVersion.h')
-rw-r--r-- | libsolidity/interface/EVMVersion.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/interface/EVMVersion.h b/libsolidity/interface/EVMVersion.h index 738bf203..13c4ec94 100644 --- a/libsolidity/interface/EVMVersion.h +++ b/libsolidity/interface/EVMVersion.h @@ -74,6 +74,7 @@ public: /// Has the RETURNDATACOPY and RETURNDATASIZE opcodes. bool supportsReturndata() const { return *this >= byzantium(); } bool hasStaticCall() const { return *this >= byzantium(); } + bool hasBitwiseShifting() const { return *this >= constantinople(); } /// Whether we have to retain the costs for the call opcode itself (false), /// or whether we can just forward easily all remaining gas (true). |