op: Amend constructor initializer list order

Amends the order of the initializer list to be structured the same way
the members are ordered.

Silences a -Wreorder warning.
This commit is contained in:
Lioncash 2019-03-14 02:45:55 -04:00
parent 2035d25bef
commit 984b731e17

View file

@ -15,7 +15,7 @@
namespace Sirit {
Op::Op(spv::Op opcode, std::optional<u32> id, Id result_type)
: opcode(opcode), id(id), result_type(result_type) {
: opcode(opcode), result_type(result_type), id(id) {
operand_type = OperandType::Op;
}