================
@@ -1333,7 +1333,13 @@ void StmtProfiler::VisitPredefinedExpr(const
PredefinedExpr *S) {
void StmtProfiler::VisitIntegerLiteral(const IntegerLiteral *S) {
VisitExpr(S);
S->getValue().Profile(ID);
- ID.AddInteger(S->getType()->castAs<BuiltinType>()->getKind());
+
+ QualType T = S->getType();
+ ID.AddInteger(T->getTypeClass());
----------------
hnrklssn wrote:
This addition of the type class doesn't observe the `Canonical` attribute,
leading to IntegerLiterals with different types but same canonical types
mismatching even when `Canonical` is true.
https://github.com/llvm/llvm-project/pull/65889
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits