aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-24 02:42:38 +0800
committerchriseth <c@ethdev.com>2017-02-24 02:43:40 +0800
commit4b1e8111cc2469808d08e1718d3edd64b2cc4484 (patch)
tree782afbf5c4381182c73dbdec8b5f273bd4bc00b9 /libsolidity/analysis
parent811bb770c51bc63f9ccb2bff014482ba9c760132 (diff)
downloaddexon-solidity-4b1e8111cc2469808d08e1718d3edd64b2cc4484.tar.gz
dexon-solidity-4b1e8111cc2469808d08e1718d3edd64b2cc4484.tar.zst
dexon-solidity-4b1e8111cc2469808d08e1718d3edd64b2cc4484.zip
Remove assert for now.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/GlobalContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/analysis/GlobalContext.cpp b/libsolidity/analysis/GlobalContext.cpp
index 4f100cd0..069d10f5 100644
--- a/libsolidity/analysis/GlobalContext.cpp
+++ b/libsolidity/analysis/GlobalContext.cpp
@@ -66,8 +66,9 @@ m_magicVariables(vector<shared_ptr<MagicVariableDeclaration const>>{make_shared<
make_shared<FunctionType>(strings{"bytes32", "uint8", "bytes32", "bytes32"}, strings{"address"}, FunctionType::Location::ECRecover)),
make_shared<MagicVariableDeclaration>("ripemd160",
make_shared<FunctionType>(strings(), strings{"bytes20"}, FunctionType::Location::RIPEMD160, true)),
- make_shared<MagicVariableDeclaration>("assert",
- make_shared<FunctionType>(strings{"bool"}, strings{}, FunctionType::Location::Assert)),
+// Disabled until decision about semantics of assert is made.
+// make_shared<MagicVariableDeclaration>("assert",
+// make_shared<FunctionType>(strings{"bool"}, strings{}, FunctionType::Location::Assert)),
make_shared<MagicVariableDeclaration>("revert",
make_shared<FunctionType>(strings(), strings(), FunctionType::Location::Revert))})
{