From fa242904b04edd7f0c21cc005b0a25fe8c48784f Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Tue, 19 Jan 2016 11:31:55 -0500 Subject: [PATCH] Make Instruction::getBlock() const. --- SPIRV/spvIR.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index 91e42aa3..688068da 100755 --- a/SPIRV/spvIR.h +++ b/SPIRV/spvIR.h @@ -110,7 +110,7 @@ public: } } void setBlock(Block* b) { block = b; } - Block* getBlock() { return block; } + Block* getBlock() const { return block; } Op getOpCode() const { return opCode; } int getNumOperands() const { return (int)operands.size(); } Id getResultId() const { return resultId; }