mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #14322 from ethereum/stackLayoutsForUnassignedReturnVariables
Account for unassigned return variables in stack layout generation.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
// This used to throw during stack layout generation.
|
||||
function g(b,s) -> y {
|
||||
y := g(b, g(y, s))
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// stackOptimization: true
|
||||
// ----
|
||||
// /* "":0:111 */
|
||||
// stop
|
||||
// /* "":60:109 */
|
||||
// tag_1:
|
||||
// pop
|
||||
// /* "":99:100 */
|
||||
// 0x00
|
||||
// /* "":97:104 */
|
||||
// tag_1
|
||||
// jump // in
|
||||
Reference in New Issue
Block a user