aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/MC/MCExpr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index afc90d9..48a13f6 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -40,7 +40,7 @@ private:
void operator=(const MCExpr&); // DO NOT IMPLEMENT
protected:
- MCExpr(ExprKind _Kind) : Kind(_Kind) {}
+ explicit MCExpr(ExprKind _Kind) : Kind(_Kind) {}
public:
/// @name Accessors
@@ -86,7 +86,7 @@ inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
class MCConstantExpr : public MCExpr {
int64_t Value;
- MCConstantExpr(int64_t _Value)
+ explicit MCConstantExpr(int64_t _Value)
: MCExpr(MCExpr::Constant), Value(_Value) {}
public:
@@ -118,7 +118,7 @@ public:
class MCSymbolRefExpr : public MCExpr {
const MCSymbol *Symbol;
- MCSymbolRefExpr(const MCSymbol *_Symbol)
+ explicit MCSymbolRefExpr(const MCSymbol *_Symbol)
: MCExpr(MCExpr::SymbolRef), Symbol(_Symbol) {}
public: