diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-20 08:09:57 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-20 20:25:28 +0800 |
commit | 0e33b6346802581cfcc45195344a705ebd683c1f (patch) | |
tree | 1b8dc38390ade1d1cfec5ee181befe64037de9bf | |
parent | c3330faf210ee06464dbc71a7946e069033299ac (diff) | |
download | dexon-solidity-0e33b6346802581cfcc45195344a705ebd683c1f.tar.gz dexon-solidity-0e33b6346802581cfcc45195344a705ebd683c1f.tar.zst dexon-solidity-0e33b6346802581cfcc45195344a705ebd683c1f.zip |
Allow warnings for inline assembly block
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 2 | ||||
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index 18b42fce..ebb84784 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -575,7 +575,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly) return true; } ); - solAssert(errors.empty(), "Code generation for inline assembly with errors requested."); + solAssert(Error::containsOnlyWarnings(errors), "Code generation for inline assembly with errors requested."); m_context.setStackOffset(startStackHeight); return false; } diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index f8655c0c..6c04367f 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -51,7 +51,7 @@ bool successParse(std::string const& _source, bool _assemble = false) if (_assemble) { stack.assemble(); - if (!stack.errors().empty()) + if (!stack.errors().empty() && !Error::containsOnlyWarnings(stack.errors())) return false; } } |