index a7b43d80328417bc1b4d2b59ab720879689e7c4b..be21d633e54ba287cedaee0577d298a3bd24bfa7 100644 (file)
DIType Ty(TyNode);
assert(Ty.isType());
+ assert(*&Ty == resolve(Ty.getRef()) &&
+ "type was not uniqued, possible ODR violation.");
// Construct the context before querying for the existence of the DIE in case
// such construction creates the DIE.
DIE *ContextDIE = getOrCreateContextDIE(Context);
assert(ContextDIE);
- // Unique the type. This is a noop if the type has no unique identifier.
- Ty = DIType(resolve(Ty.getRef()));
-
DIE *TyDIE = getDIE(Ty);
if (TyDIE)
return TyDIE;