================
@@ -14536,6 +14589,9 @@ static QualType getCommonSugarTypeNode(ASTContext &Ctx, 
const Type *X,
                                       DX->isCountInBytes(), DX->isOrNull(),
                                       CDX);
   }
+  case Type::PredefinedSugar: {
+    return QualType();
+  }
----------------
mizvekov wrote:

If you had an underlying type that's non-canonical, then this should return a 
predefined type with an underlying type which is the common sugar between the 
two.

Since I suggested above to drop the underlying type, you should never hit here, 
and you can put this in the list of unreachable type classes.

https://github.com/llvm/llvm-project/pull/143653
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to