[llvm] [SPIR-V] Avoid typed pointers for global variables (PR #201203)

Viktoria Maximova via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 07:06:56 PDT 2026


================
@@ -818,6 +818,8 @@ Register SPIRVGlobalRegistry::buildGlobalVariable(
     GVar = M->getGlobalVariable(Name);
     if (GVar == nullptr) {
       const Type *Ty = getTypeForSPIRVType(BaseType); // TODO: check type.
----------------
vmaksimo wrote:

Can the TODO be removed now, or is it related to some other type check?

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


More information about the llvm-commits mailing list