Make Instruction::getBlock() const.
authorDejan Mircevski <deki@google.com>
Tue, 19 Jan 2016 16:31:55 +0000 (11:31 -0500)
committerDejan Mircevski <deki@google.com>
Tue, 19 Jan 2016 16:31:55 +0000 (11:31 -0500)
SPIRV/spvIR.h

index 91e42aa..688068d 100755 (executable)
@@ -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; }