microinstruction: Make constructor explicit
This commit is contained in:
parent
fd5362e968
commit
06ec4b5977
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ namespace IR {
|
||||||
*/
|
*/
|
||||||
class Inst final : public Common::IntrusiveListNode<Inst> {
|
class Inst final : public Common::IntrusiveListNode<Inst> {
|
||||||
public:
|
public:
|
||||||
Inst(Opcode op) : op(op) {}
|
explicit Inst(Opcode op) : op(op) {}
|
||||||
|
|
||||||
bool HasUses() const { return use_count > 0; }
|
bool HasUses() const { return use_count > 0; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue