Add comment that was missed in previous commit.
authorJohn Kessenich <cepheus@frii.com>
Tue, 13 Oct 2015 16:55:08 +0000 (10:55 -0600)
committerJohn Kessenich <cepheus@frii.com>
Tue, 13 Oct 2015 16:55:08 +0000 (10:55 -0600)
SPIRV/SpvBuilder.cpp

index 12fd003..dba9c4c 100755 (executable)
@@ -500,6 +500,9 @@ Id Builder::findScalarConstant(Op typeClass, Id typeId, unsigned v1, unsigned v2
     return 0;
 }
 
+// Return true if consuming 'opcode' means consuming a constant.
+// "constant" here means after final transform to executable code,
+// the value consumed will be a constant, so includes specialization.
 bool Builder::isConstantOpCode(Op opcode) const
 {
     switch (opcode) {