Add missing explicit specifiers (#27)

This commit is contained in:
Mat M 2016-09-07 07:08:48 -04:00 committed by Merry
parent 6e0f27a500
commit 6a2174ebfa
2 changed files with 4 additions and 4 deletions

View file

@ -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) {

View file

@ -94,7 +94,7 @@ struct If {
* executed.
*/
struct CheckHalt {
CheckHalt(Terminal else_) : else_(else_) {}
explicit CheckHalt(Terminal else_) : else_(else_) {}
Terminal else_;
};