From: Dejan Mircevski Date: Tue, 19 Jan 2016 19:08:32 +0000 (-0500) Subject: Explicitly initialize Instruction::block. X-Git-Tag: upstream/0.1~293^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34bc6c389690df7937dfeb9cad7d473775ecb1fd;p=platform%2Fupstream%2Fglslang.git Explicitly initialize Instruction::block. --- diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index 688068d..ea8548e 100755 --- a/SPIRV/spvIR.h +++ b/SPIRV/spvIR.h @@ -77,8 +77,8 @@ const MemorySemanticsMask MemorySemanticsAllMemory = (MemorySemanticsMask)0x3FF; class Instruction { public: - Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode) { } - explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode) { } + Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode), block(nullptr) { } + explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode), block(nullptr) { } virtual ~Instruction() {} void addIdOperand(Id id) { operands.push_back(id); } void addImmediateOperand(unsigned int immediate) { operands.push_back(immediate); }