aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheckImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/FileCheck/FileCheckImpl.h')
-rw-r--r--llvm/lib/FileCheck/FileCheckImpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/FileCheck/FileCheckImpl.h b/llvm/lib/FileCheck/FileCheckImpl.h
index 4715fa9..b3cd2af 100644
--- a/llvm/lib/FileCheck/FileCheckImpl.h
+++ b/llvm/lib/FileCheck/FileCheckImpl.h
@@ -51,7 +51,7 @@ struct ExpressionFormat {
};
private:
- Kind Value;
+ Kind Value = Kind::NoFormat;
unsigned Precision = 0;
/// printf-like "alternate form" selected.
bool AlternateForm = false;
@@ -78,7 +78,7 @@ public:
/// \returns the format specifier corresponding to this format as a string.
StringRef toString() const;
- ExpressionFormat() : Value(Kind::NoFormat){};
+ ExpressionFormat() = default;
explicit ExpressionFormat(Kind Value) : Value(Value), Precision(0){};
explicit ExpressionFormat(Kind Value, unsigned Precision)
: Value(Value), Precision(Precision){};