[all-commits] [llvm/llvm-project] ed0855: [SemaHLSL] Warn when a local resource is re-assign...
Finn Plummer via All-commits
all-commits at lists.llvm.org
Mon Mar 2 11:55:31 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed085573f40279d6b9cc5ff6e53e1b08d3c45df3
https://github.com/llvm/llvm-project/commit/ed085573f40279d6b9cc5ff6e53e1b08d3c45df3
Author: Finn Plummer <mail at inbelic.dev>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M clang/include/clang/Basic/DiagnosticGroups.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Sema/SemaHLSL.h
M clang/lib/Sema/SemaHLSL.cpp
A clang/test/SemaHLSL/local_resource_bindings.hlsl
A clang/test/SemaHLSL/local_resource_bindings_errs.hlsl
Log Message:
-----------
[SemaHLSL] Warn when a local resource is re-assigned to non-unique global resource (#182101)
Generate a warning whenever a local resource is (re-)assigned such that
it is not guaranteed to map to a single unique global resource.
An error is not generated during sema because simple DCE or constant
folding might resolve the assignment to be to a unique global resource.
Instead, an error will be reported when trying to resolve the resource
access in the `dxil-resource-access` pass, implemented
[here](https://github.com/llvm/llvm-project/pull/182106).
Resolves https://github.com/llvm/llvm-project/issues/179303.
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