From 97e35420a62e112de57a31b265e020662883ef8f Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Thu, 22 Mar 2018 23:44:11 -0600 Subject: [PATCH] Non-functional: always return value from makeFpConstant(). Should fix #1308. --- SPIRV/SpvBuilder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPIRV/SpvBuilder.cpp b/SPIRV/SpvBuilder.cpp index 6e78b79..dfeae87 100644 --- a/SPIRV/SpvBuilder.cpp +++ b/SPIRV/SpvBuilder.cpp @@ -859,12 +859,14 @@ Id Builder::makeFpConstant(Id type, double d, bool specConstant) return makeFloatConstant(d, specConstant); case 64: return makeDoubleConstant(d, specConstant); + default: + break; } assert(false); + return NoResult; } - Id Builder::findCompositeConstant(Op typeClass, const std::vector& comps) { Instruction* constant = 0; -- 2.7.4