[PATCH] D132568: [clang][Sema] check default argument promotions for printf
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 25 11:22:35 PDT 2022
nickdesaulniers added inline comments.
================
Comment at: clang/lib/Sema/SemaChecking.cpp:10133-10135
+ if (ImplicitMatch == ArgType::NoMatchPedantic ||
+ ImplicitMatch == ArgType::NoMatchTypeConfusion)
+ Match = ImplicitMatch;
----------------
Similarly, if `ImplicitMatch` can only be updated to one of these two values within the above `const ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(E)` branch, does it make sense to additionally hoist this conditional check into that branch as well?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132568/new/
https://reviews.llvm.org/D132568
More information about the cfe-commits
mailing list