diff options
author | Christian Parpart <christian@ethereum.org> | 2018-07-03 17:51:44 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-02 20:36:05 +0800 |
commit | 5d9320c70b11b5ae1a44376451599732aa49dcde (patch) | |
tree | 6d41279efe62a7f9e62afcb119bdcfb045a3e5ea /libsolidity/inlineasm | |
parent | 6003ed2abdea76e809b1e6501b9e5a85b38e5859 (diff) | |
download | dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.gz dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.bz2 dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.lz dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.xz dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.zst dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.zip |
Disallow loos assembly in Solidity by permanently setting it to SyntaxError (from Warning)
Diffstat (limited to 'libsolidity/inlineasm')
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index d5580dd2..ea804cf5 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -57,7 +57,7 @@ bool AsmAnalyzer::operator()(Label const& _label) solAssert(!_label.name.empty(), ""); checkLooseFeature( _label.location, - "The use of labels is deprecated. Please use \"if\", \"switch\", \"for\" or function calls instead." + "The use of labels is disallowed. Please use \"if\", \"switch\", \"for\" or function calls instead." ); m_info.stackHeightInfo[&_label] = m_stackHeight; warnOnInstructions(solidity::Instruction::JUMPDEST, _label.location); @@ -68,7 +68,7 @@ bool AsmAnalyzer::operator()(assembly::Instruction const& _instruction) { checkLooseFeature( _instruction.location, - "The use of non-functional instructions is deprecated. Please use functional notation instead." + "The use of non-functional instructions is disallowed. Please use functional notation instead." ); auto const& info = instructionInfo(_instruction.instruction); m_stackHeight += info.ret - info.args; @@ -201,7 +201,7 @@ bool AsmAnalyzer::operator()(assembly::StackAssignment const& _assignment) { checkLooseFeature( _assignment.location, - "The use of stack assignment is deprecated. Please use assignment in functional notation instead." + "The use of stack assignment is disallowed. Please use assignment in functional notation instead." ); bool success = checkAssignment(_assignment.variableName, size_t(-1)); m_info.stackHeightInfo[&_assignment] = m_stackHeight; |