aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-09 00:55:27 +0800
committerGitHub <noreply@github.com>2018-08-09 00:55:27 +0800
commit9d782cc39c7a42bae17565d419adfc8398a6ab9a (patch)
tree0a074d945b3a6cbe6b4efa3a347098149ed750cc /libsolidity
parentbb071f307555cba6990eb4ee51c952ff2c0479e5 (diff)
parenta9819aa8bc68a35414aaa280d829018669ec770f (diff)
downloaddexon-solidity-9d782cc39c7a42bae17565d419adfc8398a6ab9a.tar.gz
dexon-solidity-9d782cc39c7a42bae17565d419adfc8398a6ab9a.tar.zst
dexon-solidity-9d782cc39c7a42bae17565d419adfc8398a6ab9a.zip
Merge pull request #4770 from ethereum/throw-codegen
Remove code generation for Throw statement
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index 02274d60..e26bc13a 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -779,11 +779,9 @@ bool ContractCompiler::visit(Return const& _return)
return false;
}
-bool ContractCompiler::visit(Throw const& _throw)
+bool ContractCompiler::visit(Throw const&)
{
- CompilerContext::LocationSetter locationSetter(m_context, _throw);
- // Do not send back an error detail.
- m_context.appendRevert();
+ solAssert(false, "Throw statement is disallowed.");
return false;
}