p4c icon indicating copy to clipboard operation
p4c copied to clipboard

RenameMap in inlining.cpp does not preserve the original variable name.

Open fruffy opened this issue 1 year ago • 2 comments

The original variable name is lost, leading to incorrect debugging and printing output.

fruffy avatar Feb 21 '24 14:02 fruffy

I understand this is an older issue, but it would be really helpful to have an example code that makes this problem visible.

vlstill avatar May 24 '24 18:05 vlstill

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.

fruffy avatar May 24 '24 20:05 fruffy