We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4637bdf commit c5981f0Copy full SHA for c5981f0
1 file changed
src/dmangle.d
@@ -178,7 +178,7 @@ public:
178
{
179
// cannot put C++ classes into a hash table, tries to call toHash
180
size_t[void*] types;
181
- size_t[void*] symbols;
+ size_t[string] symbols;
182
size_t[void*] idents;
183
}
184
OutBuffer* buf;
@@ -209,12 +209,13 @@ public:
209
210
version(useBackref)
211
212
- if (auto p = cast(void*)s in symbols)
+ string id = s.getIdent();
213
+ if (auto p = id in symbols)
214
215
buf.printf("%d$", cast(int)*p);
216
return true;
217
- symbols[cast(void*)s] = symbols.length;
218
+ symbols[id] = symbols.length;
219
220
return false;
221
0 commit comments