p4c
p4c copied to clipboard
RenameMap in inlining.cpp does not preserve the original variable name.
The original variable name is lost, leading to incorrect debugging and printing output.
I understand this is an older issue, but it would be really helpful to have an example code that makes this problem visible.
It's been a while, let me see whether I can reproduce this. It's a bit tricky because it happens only when grabbing/printing names from specific IR nodes.