================
@@ -125,6 +125,12 @@ class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
return curpos;
}
+ void addByte(uint8_t Byte) {
+ assert((curpos + 1) <= size);
----------------
Artem-B wrote:
`curpos < size` ?
https://github.com/llvm/llvm-project/pull/136006