[clang] [llvm] [HLSL] Set visibility of cbuffer global variables to internal (2nd attempt) (PR #202745)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 12:45:55 PDT 2026


================
@@ -59,6 +59,7 @@ static bool replaceCBufferAccesses(Module &M) {
     for (const hlsl::CBufferMember &Member : Mapping.Members)
       replaceUsersOfGlobal(Member.GV, Mapping.Handle, Member.Offset);
 
+  CBufMD->removeCBufferGlobalsFromUseList(M);
----------------
hekota wrote:

Oh I see :) I'll try that.


https://github.com/llvm/llvm-project/pull/202745


More information about the cfe-commits mailing list