[all-commits] [llvm/llvm-project] 57dad8: [SPIRV] Fix failing assertion in SPIRVAsmPrinter (...
Juan Manuel Martinez Caamaño via All-commits
all-commits at lists.llvm.org
Mon Nov 10 02:03:14 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 57dad86cb3dbbaf0da5aac6b3d3c5d5e1bae64fa
https://github.com/llvm/llvm-project/commit/57dad86cb3dbbaf0da5aac6b3d3c5d5e1bae64fa
Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
Date: 2025-11-10 (Mon, 10 Nov 2025)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp
A llvm/test/CodeGen/SPIRV/non_int_constant_null.ll
Log Message:
-----------
[SPIRV] Fix failing assertion in SPIRVAsmPrinter (#166909)
With `+SPV_KHR_float_controls2` and when there is a non-int
`OpConstantNull` we
would call `MI.getOperand(1).getImm()` when `MI` was not an `OpTypeInt`
(the
associated test has an `OpTypeArray` zeroinitialized).
Under this conditions an assertion is triggered.
This patch adds the missing condition.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list