[llvm] [SPIR-V] Skip debug type sizes wider than 32 bits (PR #223678)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 01:38:53 PDT 2026
================
@@ -1150,10 +1160,12 @@ std::optional<MCRegister> SPIRVNonSemanticDebugHandler::emitDebugTypeMember(
// DIDerivedType members carry no column, so emit 0.
MCRegister ColReg = emitOpConstantI32(0, I32TypeReg, MAI);
- MCRegister OffsetReg = emitOpConstantI32(
- static_cast<uint32_t>(M->getOffsetInBits()), I32TypeReg, MAI);
- MCRegister SizeReg = emitOpConstantI32(
- static_cast<uint32_t>(M->getSizeInBits()), I32TypeReg, MAI);
+ MCRegister OffsetReg = emitOpConstantI32Checked(
----------------
aobolensk wrote:
Done, thanks for your feedback
https://github.com/llvm/llvm-project/pull/223678
More information about the llvm-commits
mailing list