diff options
author | Jason Cobb <jason.e.cobb@gmail.com> | 2018-04-17 05:11:32 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-04 08:04:48 +0800 |
commit | 6e29775d39be0c8e1415ee8775ab123c068e02fc (patch) | |
tree | d494f0634380d57170d62425077873002ffd9f3a | |
parent | ef8fb63b317e82f0bddb8ac917b065960380cd17 (diff) | |
download | dexon-solidity-6e29775d39be0c8e1415ee8775ab123c068e02fc.tar.gz dexon-solidity-6e29775d39be0c8e1415ee8775ab123c068e02fc.tar.zst dexon-solidity-6e29775d39be0c8e1415ee8775ab123c068e02fc.zip |
Remove suicide and sha3 assembly instructions
-rw-r--r-- | Changelog.md | 1 | ||||
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/Changelog.md b/Changelog.md index c1077926..6877ae22 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ Breaking Changes: * General: ``continue`` in a ``do...while`` loop jumps to the condition (it used to jump to the loop body). Warning: this may silently change the semantics of existing code. * Type Checker: Disallow arithmetic operations for Boolean variables. * Disallow trailing dots that are not followed by a number. + * Remove assembly instructions ``sha3`` and ``suicide`` Language Features: * General: Allow appending ``calldata`` keyword to types, to explicitly specify data location for arguments of external functions. diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index d300f8fb..431f33e5 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -318,11 +318,6 @@ std::map<string, dev::solidity::Instruction> const& Parser::instructions() transform(name.begin(), name.end(), name.begin(), [](unsigned char _c) { return tolower(_c); }); s_instructions[name] = instruction.second; } - - // add alias for suicide - s_instructions["suicide"] = solidity::Instruction::SELFDESTRUCT; - // add alis for sha3 - s_instructions["sha3"] = solidity::Instruction::KECCAK256; } return s_instructions; } |