diff options
author | Christian Parpart <christian@ethereum.org> | 2018-11-29 08:58:15 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-12-01 00:07:17 +0800 |
commit | 435f7b3b72157e884344adbc7b62033bd08bb51c (patch) | |
tree | de4831bb56b16945894b9efc0bea95576b43cea9 /libsolidity/codegen | |
parent | c48a5264be4221873fe02cac57f6a41a32010fea (diff) | |
download | dexon-solidity-435f7b3b72157e884344adbc7b62033bd08bb51c.tar.gz dexon-solidity-435f7b3b72157e884344adbc7b62033bd08bb51c.tar.zst dexon-solidity-435f7b3b72157e884344adbc7b62033bd08bb51c.zip |
liblangutil: Scanner: remove superfluous sourceName field (it's in CharStream already)
Also, ParserBase::sourceName() was dead code. Eliminating it should
increase test coverage (how sneaky) :-)
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/CompilerContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp index 16bc4225..5a3a233c 100644 --- a/libsolidity/codegen/CompilerContext.cpp +++ b/libsolidity/codegen/CompilerContext.cpp @@ -360,7 +360,7 @@ void CompilerContext::appendInlineAssembly( ErrorList errors; ErrorReporter errorReporter(errors); - auto scanner = make_shared<langutil::Scanner>(langutil::CharStream(_assembly, "--CODEGEN--"), "--CODEGEN--"); + auto scanner = make_shared<langutil::Scanner>(langutil::CharStream(_assembly, "--CODEGEN--")); auto parserResult = yul::Parser(errorReporter, yul::AsmFlavour::Strict).parse(scanner, false); #ifdef SOL_OUTPUT_ASM cout << yul::AsmPrinter()(*parserResult) << endl; |