Skip to content

Commit b609233

Browse files
authored
[spirv] Restoring breaks incorrectly dropped (#14320)
Breaks were lost in 5fd4877, restoring them. When the breaks are lost, literals are enconded/decoded twice, which is wrong. ** This is done in this repo because this piece of code is not present in Khronos repo. ** Signed-off-by: Marcos Maronas <[email protected]>
1 parent 1a6ee14 commit b609233

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ void SPIRVDecorate::encode(spv_ostream &O) const {
126126
break;
127127
case internal::DecorationFuncParamDescINTEL:
128128
SPIRVDecorateFuncParamDescAttr::encodeLiterals(Encoder, Literals);
129+
break;
129130
case internal::DecorationHostAccessINTEL:
130131
SPIRVDecorateHostAccessINTELLegacy::encodeLiterals(Encoder, Literals);
131132
break;
@@ -163,6 +164,7 @@ void SPIRVDecorate::decode(std::istream &I) {
163164
break;
164165
case internal::DecorationFuncParamDescINTEL:
165166
SPIRVDecorateFuncParamDescAttr::decodeLiterals(Decoder, Literals);
167+
break;
166168
case internal::DecorationHostAccessINTEL:
167169
SPIRVDecorateHostAccessINTELLegacy::decodeLiterals(Decoder, Literals);
168170
break;

0 commit comments

Comments
 (0)