Add missing explicit specifiers (#27)
This commit is contained in:
parent
6e0f27a500
commit
6a2174ebfa
2 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@ namespace BackendX64 {
|
|||
|
||||
struct OpArg {
|
||||
OpArg() : type(Type::Operand), inner_operand() {}
|
||||
OpArg(const Xbyak::Address& address) : type(Type::Address), inner_address(address) {}
|
||||
OpArg(const Xbyak::Reg& reg) : type(Type::Reg), inner_reg(reg) {}
|
||||
/* implicit */ OpArg(const Xbyak::Address& address) : type(Type::Address), inner_address(address) {}
|
||||
/* implicit */ OpArg(const Xbyak::Reg& reg) : type(Type::Reg), inner_reg(reg) {}
|
||||
|
||||
Xbyak::Operand& operator*() {
|
||||
switch (type) {
|
||||
|
@ -86,7 +86,7 @@ private:
|
|||
|
||||
class RegAlloc final {
|
||||
public:
|
||||
RegAlloc(BlockOfCode* code) : code(code) {}
|
||||
explicit RegAlloc(BlockOfCode* code) : code(code) {}
|
||||
|
||||
/// Late-def
|
||||
Xbyak::Reg64 DefGpr(IR::Inst* def_inst, HostLocList desired_locations = any_gpr) {
|
||||
|
|
|
@ -94,7 +94,7 @@ struct If {
|
|||
* executed.
|
||||
*/
|
||||
struct CheckHalt {
|
||||
CheckHalt(Terminal else_) : else_(else_) {}
|
||||
explicit CheckHalt(Terminal else_) : else_(else_) {}
|
||||
Terminal else_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue