[PATCH] D81641: [SYCL] Implement thread-local storage restriction

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 06:35:22 PDT 2020


riccibruno added inline comments.


================
Comment at: clang/lib/Sema/SemaExpr.cpp:216
+  if (getLangOpts().SYCLIsDevice)
+    if (auto VD = dyn_cast<VarDecl>(D))
+      if (VD->getTLSKind() != VarDecl::TLS_None)
----------------
Nit: The convention is `auto *VD`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81641





More information about the cfe-commits mailing list