Merge pull request #9074 from ethereum/commandline-fix-wasm-crash-if-no-dialect

Fix ICE when selecting assembly variant with no Ewasm translation
This commit is contained in:
chriseth 2020-06-03 14:24:41 +02:00 committed by GitHub
commit 5024985708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 0 deletions

View File

@ -1172,6 +1172,12 @@ bool CommandLineInterface::processInput()
endl;
return false;
}
if (targetMachine == Machine::Ewasm && inputLanguage != Input::StrictAssembly && inputLanguage != Input::Ewasm)
{
serr() << "The selected input language is not directly supported when targeting the Ewasm machine ";
serr() << "and automatic translation is not available." << endl;
return false;
}
serr() <<
"Warning: Yul is still experimental. Please use the output with care." <<
endl;

View File

@ -0,0 +1 @@
--assemble --machine ewasm

View File

@ -0,0 +1 @@
The selected input language is not directly supported when targeting the Ewasm machine and automatic translation is not available.

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,3 @@
{
sstore(0, 1)
}

View File

@ -0,0 +1 @@