mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Only warn for shift instructions if not using constantinople
This commit is contained in:
committed by
chriseth
parent
7f8e573339
commit
5a54cd5c70
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user