You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whose output (after a bit of massaging to correct the type inaccuracies) is 2 6 2 6, which is incorrect as the structs are passed by reference instead of by value
The text was updated successfully, but these errors were encountered:
This issue shows up also in some of the AnghaBench tests, for example in amd64/linux/drivers/gpu/drm/gma500/extr_psb_intel_sdvo.c_psb_intel_sdvo_create_enhance_property_tv.bc, where a %struct.psb_intel_sdvo_enhancements_reply is passed byval.
Debug info for such arguments is produced as if it was a struct value, not a pointer value, so it currently crashes #191
Possible solution: when a byval argument is detected, produce
Compiling the following program to WebAssembly (no codegen, only IR
clang --target=wasm32-unknown-wasi -S -emit-llvm ../test_struct_split.c
)produces
whose expected output is
2 6 1 2
.Decompiling it via Rellic produces
whose output (after a bit of massaging to correct the type inaccuracies) is
2 6 2 6
, which is incorrect as the structs are passed by reference instead of by valueThe text was updated successfully, but these errors were encountered: