Index: src/IceDefs.h |
diff --git a/src/IceDefs.h b/src/IceDefs.h |
index 0e8cdfbe39d6117a11e87ecd1c064ebfe44fb478..64e70de9440be3d43324a52991c58e124f57c8fb 100644 |
--- a/src/IceDefs.h |
+++ b/src/IceDefs.h |
@@ -201,7 +201,7 @@ class ErrorCode : public std::error_code { |
ErrorCode &operator=(const ErrorCode &) = delete; |
public: |
- ErrorCode() : HasError(false) {} |
+ ErrorCode() = default; |
void assign(ErrorCodes Code) { |
if (!HasError) { |
HasError = true; |
@@ -211,7 +211,7 @@ public: |
void assign(int Code) { assign(static_cast<ErrorCodes>(Code)); } |
private: |
- bool HasError; |
+ bool HasError = false; |
}; |
// Reverse range adaptors written in terms of llvm::make_range(). |