From 984b731e17b66256697e187fbf165d221bbca1d0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 Mar 2019 02:45:55 -0400 Subject: [PATCH] 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. --- src/op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/op.cpp b/src/op.cpp index ee383fe..4bebe01 100644 --- a/src/op.cpp +++ b/src/op.cpp @@ -15,7 +15,7 @@ namespace Sirit { Op::Op(spv::Op opcode, std::optional id, Id result_type) - : opcode(opcode), id(id), result_type(result_type) { + : opcode(opcode), result_type(result_type), id(id) { operand_type = OperandType::Op; }