sammccall added inline comments.
================ Comment at: clang/lib/Sema/SemaStmt.cpp:709 } SwitchDiagnoser(Cond); + // The TypoExpr might be corrected to a non-intergral-or-enum type in the + // later stage without the proper type check, which is invalid for switch ---------------- How do we know Cond is a TypoExpr directly rather than containing one? I think the usual strategy when code can't deal with typo correction being delayed further is to call CorrectDelayedTyposInExpr. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76592/new/ https://reviews.llvm.org/D76592 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits