[PATCH] D112532: [Matrix] Replace some err kinds with err_builtin_invalid_arg_type. (NFC)

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 26 10:06:08 PDT 2021


erichkeane added inline comments.


================
Comment at: clang/lib/Sema/SemaChecking.cpp:16582
+    Diag(Matrix->getBeginLoc(), diag::err_builtin_invalid_arg_type)
+        << 1 << 1 << Matrix->getType();
     return ExprError();
----------------
1 nit: On the 'select' lines, please put a /**/ comment next to the integer to explain what it is.  If they were all closer to eachother, I'd suggest doing an enum for them, but the comment should be good enough.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112532



More information about the cfe-commits mailing list