microinstruction: Make constructor explicit

This commit is contained in:
Lioncash 2016-08-22 10:51:17 -04:00 committed by MerryMage
parent fd5362e968
commit 06ec4b5977

View file

@ -22,7 +22,7 @@ namespace IR {
*/
class Inst final : public Common::IntrusiveListNode<Inst> {
public:
Inst(Opcode op) : op(op) {}
explicit Inst(Opcode op) : op(op) {}
bool HasUses() const { return use_count > 0; }