diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 86005cd3d80..eaf0a17f052 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -980,7 +980,7 @@ DIE *DwarfUnit::getOrCreateTypeDIE(const MDNode *TyNode) { DIType Ty(TyNode); assert(Ty.isType()); - assert(*&Ty == resolve(Ty.getRef()) && + 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