Variables to registers map does not handle shadowing #420
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When running the compiler with the
debug_infoflag, the expectedvariables_registersomits shadowed variables, and their registers will be unknown in the output as a result.Code example:
The
variables_registersmap in the output from the compilation of the above example:In the above map, the register associated with the argument
x(which should be{arg, 0}) does not show in the map because the argxis shadowed by the variablex.This issue is not relevant anymore, as the
variables_registersis not a part of the compiler output since releasev7.2.0.