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
When ArgumentPromotionPass optimizes a function, it changes some arguments to be passed by value instead of by pointer or reference. As part of this optimization, it creates a load instruction before the function call and removes the original load inside the function. However, the debug location of the new load instruction is incorrectly set to the location of the call instruction, instead of the original load inside the function. This results in incorrect debug information and makes it harder to trace the source code during debugging.