[WASM_x86] Fix a bug that calculates the label_index in the Br visitor - #1299
Conversation
…dex in the `Branch` visitor
|
Thirumailai, it seems the condition
By same |
|
|
Yup, got it. I think the condition fine for the moment.
It is more abstract/conceptual. In simple words, what I mean by As the tests pass, let's merge this for the moment and we can improve upon it incrementally. |
|
Before splitting into two id's (if_id, loop_id), I thought to use the same approach as wasm does i.e., using nesting_level. Like push_back both loop_id and if_id into one stack. Later I realized it is difficult to retrieve the correct id's in the nested if_loop statement. |
Yes, I guessed. Since
I am not sure how much this ideal case is possible, but we need-to/should try/experiment and see. |
Fixes: #1298