From 06ec4b5977a08b39d0f72ae7f8836624df737c0a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 22 Aug 2016 10:51:17 -0400 Subject: [PATCH] microinstruction: Make constructor explicit --- src/frontend/ir/microinstruction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/ir/microinstruction.h b/src/frontend/ir/microinstruction.h index 730e1b2d..708577f4 100644 --- a/src/frontend/ir/microinstruction.h +++ b/src/frontend/ir/microinstruction.h @@ -22,7 +22,7 @@ namespace IR { */ class Inst final : public Common::IntrusiveListNode { public: - Inst(Opcode op) : op(op) {} + explicit Inst(Opcode op) : op(op) {} bool HasUses() const { return use_count > 0; }