[PATCH] D153510: [Clang] Check type support for local variable declaration

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 22 08:58:11 PDT 2023


craig.topper added inline comments.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:8773
+
+  checkTypeSupport(T, NewVD->getLocation(), cast<FunctionDecl>(CurContext));
 }
----------------
This feels heavy handed for not RISC-V vector types. Can we put the RISC-V code from checkTypeSupport in a function and call it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153510



More information about the cfe-commits mailing list