From 26c32140766381872255b47ff3158c29ff0e44bd Mon Sep 17 00:00:00 2001 From: Marcos Maronas Date: Thu, 27 Jun 2024 01:32:47 -0700 Subject: [PATCH] Breaks were lost in 5fd4877, restoring them. When the breaks are lost, literals are enconded/decoded twice, which is wrong. Signed-off-by: Marcos Maronas --- llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp b/llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp index 89452429fe1fc..5d54ffc4f665d 100644 --- a/llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp +++ b/llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp @@ -126,6 +126,7 @@ void SPIRVDecorate::encode(spv_ostream &O) const { break; case internal::DecorationFuncParamDescINTEL: SPIRVDecorateFuncParamDescAttr::encodeLiterals(Encoder, Literals); + break; case internal::DecorationHostAccessINTEL: SPIRVDecorateHostAccessINTELLegacy::encodeLiterals(Encoder, Literals); break; @@ -163,6 +164,7 @@ void SPIRVDecorate::decode(std::istream &I) { break; case internal::DecorationFuncParamDescINTEL: SPIRVDecorateFuncParamDescAttr::decodeLiterals(Decoder, Literals); + break; case internal::DecorationHostAccessINTEL: SPIRVDecorateHostAccessINTELLegacy::decodeLiterals(Decoder, Literals); break;