[PATCH] D131423: [clang] fix frontend crash when evaluating type trait
YingChi Long via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 17:31:59 PDT 2022
inclyc planned changes to this revision.
inclyc added inline comments.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:5431
+static bool CheckTypeTraitArgNumber(TypeTrait Kind, size_t N) {
+ if (Kind <= UTT_Last)
+ return N == 1;
----------------
I think we should report a warning or an error if this function fails.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131423/new/
https://reviews.llvm.org/D131423
More information about the cfe-commits
mailing list