================
@@ -1049,6 +1069,8 @@ void CIRGenModule::replaceGlobal(cir::GlobalOp oldGV,
cir::GlobalOp newGV) {
// erased) operation, which would leave them detached from the module.
if (lastGlobalOp == oldGV)
lastGlobalOp = newGV;
+ if (cudaRuntime)
+ cudaRuntime->handleGlobalReplace(oldGV, newGV);
----------------
koparasy wrote:
I would do here :
```cpp
if (getLangOpts().CUDA)
getCUDARuntime().handleGlobalReplace(oldGV, newGV);
```
https://github.com/llvm/llvm-project/pull/190087
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits