[PATCH] D138947: [Clang] Adjust assert from Sema::BuildCXXTypeConstructExpr

Davide Italiano via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 30 21:37:37 PST 2022


davide accepted this revision.
davide added a comment.
This revision is now accepted and ready to land.

LGTM with the comment reworded. Thanks.



================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:1463
+  assert((!ListInitialization || Exprs.size() == 1) &&
+         "Too many expressions for list initialization.");
   SourceRange FullRange = SourceRange(TyBeginLoc, RParenOrBraceLoc);
----------------
I'd rephrase this as "List initialization must have exactly one expression"


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138947/new/

https://reviews.llvm.org/D138947



More information about the cfe-commits mailing list