Skip to content

Commit 772b4ed

Browse files
committed
use identifier representation of symbols for back reference comparison
1 parent 4637bdf commit 772b4ed

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/dmangle.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,13 @@ public:
209209
{
210210
version(useBackref)
211211
{
212-
if (auto p = cast(void*)s in symbols)
212+
Identifier id = s.getIdent();
213+
if (auto p = cast(void*)id in symbols)
213214
{
214215
buf.printf("%d$", cast(int)*p);
215216
return true;
216217
}
217-
symbols[cast(void*)s] = symbols.length;
218+
symbols[cast(void*)id] = symbols.length;
218219
}
219220
return false;
220221
}

0 commit comments

Comments
 (0)