mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CommandLineInterface: Display an error instead of crashing when assembly variant has no Ewasm translation
This commit is contained in:
parent
0a71e41501
commit
ef133aa670
@ -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;
|
||||
|
@ -0,0 +1 @@
|
||||
--assemble --machine ewasm
|
@ -0,0 +1 @@
|
||||
The selected input language is not directly supported when targeting the Ewasm machine and automatic translation is not available.
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
sstore(0, 1)
|
||||
}
|
@ -0,0 +1 @@
|
||||
|
Loading…
Reference in New Issue
Block a user