From 3acbe8145c60f4d1e7a180b4602a94269a489df5 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 27 Apr 2023 12:36:59 +0800 Subject: Fix most of the disabled warnings on gcc/clang (#2839) --- source/slang/slang-emit-spirv.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-emit-spirv.cpp') diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 8710c608a..fc2505d63 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -2281,6 +2281,7 @@ struct SPIRVEmitContext element1, element2); } + break; case SpvSnippet::ASMType::Int: result = emitIntConstant((IRIntegerValue)constant.intValues[0], builder.getIntType()); break; @@ -2359,7 +2360,7 @@ struct SPIRVEmitContext emitOperand(kResultID); break; case SpvSnippet::ASMOperandType::ResultTypeId: - if (operand.content != -1) + if (operand.content != 0xFFFFFFFF) { emitOperand(context.qualifiedResultTypes[(SpvStorageClass)operand.content] .getValue()); @@ -2731,7 +2732,7 @@ struct SPIRVEmitContext { elementType = vectorType->getElementType(); } - else if (auto matrixType = as(inst->getDataType())) + else if (const auto matrixType = as(inst->getDataType())) { //TODO: implement. SLANG_ASSERT(!"unimplemented: matrix arithemetic"); -- cgit v1.2.3