mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Expect end of string at end of top-level block for assembly parser.
This commit is contained in:
1 parent
f5f00b4ee9
commit
e2bf5de8a2
9 files changed
+18
-8
No files matched your search
@@ -319,7 +319,7 @@ void CompilerContext::appendInlineAssembly(
|
||||
ErrorList errors;
|
||||
ErrorReporter errorReporter(errors);
|
||||
auto scanner = make_shared<Scanner>(CharStream(_assembly), "--CODEGEN--");
|
||||
auto parserResult = assembly::Parser(errorReporter, assembly::AsmFlavour::Strict).parse(scanner);
|
||||
auto parserResult = assembly::Parser(errorReporter, assembly::AsmFlavour::Strict).parse(scanner, false);
|
||||
#ifdef SOL_OUTPUT_ASM
|
||||
cout << assembly::AsmPrinter()(*parserResult) << endl;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user