From d5ac538e234f61f087a2a624b1b7ffeeeac55dfb Mon Sep 17 00:00:00 2001 From: Mark Adams Date: Mon, 1 Feb 2016 19:13:06 -0800 Subject: [PATCH] Fix two new Windows build warnings/errors --- SPIRV/SpvBuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SPIRV/SpvBuilder.cpp b/SPIRV/SpvBuilder.cpp index ac6283e8..237496e3 100755 --- a/SPIRV/SpvBuilder.cpp +++ b/SPIRV/SpvBuilder.cpp @@ -1464,7 +1464,7 @@ Id Builder::createCompositeCompare(Decoration precision, Id value1, Id value2, b Id boolType = makeBoolType(); Id valueType = getTypeId(value1); - Id resultId; + Id resultId = NoResult; int numConstituents = getNumTypeConstituents(valueType); @@ -1480,6 +1480,7 @@ Id Builder::createCompositeCompare(Decoration precision, Id value1, Id value2, b op = equal ? OpFOrdEqual : OpFOrdNotEqual; break; case OpTypeInt: + default: op = equal ? OpIEqual : OpINotEqual; break; case OpTypeBool: