[all-commits] [llvm/llvm-project] 28b840: [HLSL] groupshared variables should be implicitly ...

Sarah Spall via All-commits all-commits at lists.llvm.org
Wed Mar 4 12:19:17 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28b840815c2285edb232ac0d6ca6f70af987f4c2
      https://github.com/llvm/llvm-project/commit/28b840815c2285edb232ac0d6ca6f70af987f4c2
  Author: Sarah Spall <sarahspall at microsoft.com>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    M clang/test/CodeGenHLSL/group_shared.hlsl
    M clang/test/ParserHLSL/group_shared.hlsl
    M clang/test/ParserHLSL/group_shared_202x.hlsl
    M clang/test/SemaHLSL/Language/ImpCastAddrSpace.hlsl

  Log Message:
  -----------
  [HLSL] groupshared variables should be implicitly extern and should not be initialized (#184459)

Makes groupshared variables have extern storage class which prevents
them from being initialized if no initializer is provided. If one is
provided as below:
```
groupshared uint A = 1;
```
A warning, which is an error by default, is produced that says the
initializer is ignored and the variable is NOT initialized.
Closes #183602



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list