llvm-project
0e807a42 - [SPIRV][HLSL] Fix assert with cbuffers through constexpr (#164555)

Commit
14 days ago
[SPIRV][HLSL] Fix assert with cbuffers through constexpr (#164555) The comment here pointed out that RAUW would fall over given a constantexpr, but then proceeded to just do what RAUW does by hand, which falls over in the same way. Instead, convert constantexprs involving cbuffer globals to instructions before processing them. The test update just modifies the existing cbuffer test, since it implied it was trying to test this exact case anyways.
Author
Parents
Loading