mizvekov added inline comments.
================ Comment at: clang/include/clang/AST/Type.h:4592 + T->getDependence()), TOType(T), IsUnqual(IsUnqual) { + assert(!isa<TypedefType>(Can) && "Invalid canonical type"); } ---------------- erichkeane wrote: > Are `TypedefType`'s EVER canonical? Should you just be asserting 'Can' is > canonical? They can't, the original assert didn't make much sense. Though asserting on CanonicalType being canonical is a job better left to the `Type` constructor, just so we don't have to repeat it everywhere. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134286/new/ https://reviews.llvm.org/D134286 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits