1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

Bug 510706 - Follow-up to ensure a UniqueType's contribution to a signature is unique

Change-Id: Iceaf946c073455f10ffd8d95013442da91309be3
This commit is contained in:
Nathan Ridge 2017-01-29 17:36:11 -05:00
parent 52299c9124
commit e832c49faf

View file

@ -81,7 +81,9 @@ class SignatureBuilder implements ITypeMarshalBuffer {
// a need to write it to the index, but it can appear in a signature
// during partial ordering of function templates.
appendSeparator();
fBuffer.append("<UniqueType>"); //$NON-NLS-1$
fBuffer.append("Unique(@"); //$NON-NLS-1$
fBuffer.append(Integer.toHexString(System.identityHashCode(type)));
fBuffer.append(')');
} else {
assert false : "Cannot serialize " + ASTTypeUtil.getType(type) + " (" + type.getClass().getName() + ")"; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
putShort(UNSTORABLE_TYPE);