[llvm] [DirectX] Implement `memcpy` in DXIL CBuffer Access pass (PR #144436)
Finn Plummer via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 19 16:43:27 PDT 2025
================
@@ -161,7 +164,12 @@ static void replaceAccessesWithHandle(GlobalVariable *Global,
}
// Otherwise, walk users looking for a load...
- ToProcess.append(Cur->user_begin(), Cur->user_end());
+ if (isa<GetElementPtrInst>(Cur) || isa<GEPOperator>(Cur)) {
+ ToProcess.append(Cur->user_begin(), Cur->user_end());
+ continue;
+ }
+
+ reportFatalInternalError("Unexpected user of Global");
----------------
inbelic wrote:
Why use this over an `assert`?
If it is a hittable error, can we add a testcase to demonstrate.
https://github.com/llvm/llvm-project/pull/144436
More information about the llvm-commits
mailing list