================
@@ -424,7 +424,7 @@ Register SPIRVGlobalRegistry::getOrCreateCompositeOrNull(
     LLT LLTy = LLT::scalar(64);
     Register SpvVecConst =
         CurMF->getRegInfo().createGenericVirtualRegister(LLTy);
-    CurMF->getRegInfo().setRegClass(SpvVecConst, &SPIRV::iIDRegClass);
+    CurMF->getRegInfo().setRegClass(SpvVecConst, getRegClass(SpvType));
----------------
farzonl wrote:

I imagine there are other places in the SPIRV backend that might require a fix 
like this and want to give a future person a hint at how to fix it.

Alternatively create a second issue which refrences the problem you found. Add 
it to the pr description as fixed by this pr. drop a link to the issue in this 
comment section. That way if anyone searches github issues for something 
similar to this they will find your issue and see how you fixed it.

https://github.com/llvm/llvm-project/pull/111082
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to