summaryrefslogtreecommitdiff
path: root/include/clang/Basic/Sanitizers.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-01-14 02:49:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-01-14 02:49:51 +0000
commitec70889fd09a86cd8a2bca6f759569b13ba8eef5 (patch)
treeed4f946e2779576479e6640c3d8f31c2634ec75d /include/clang/Basic/Sanitizers.h
parent837aba93a3f7adda45262dbfad3dd4f39b9fc08a (diff)
downloadclang-ec70889fd09a86cd8a2bca6f759569b13ba8eef5.tar.gz
Driver: Remove SanitizerArgs::clear() function and SanitizerSet ctor,
replace with in-class initializers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Sanitizers.h')
-rw-r--r--include/clang/Basic/Sanitizers.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/clang/Basic/Sanitizers.h b/include/clang/Basic/Sanitizers.h
index 98e70dee45..bfa8e516ed 100644
--- a/include/clang/Basic/Sanitizers.h
+++ b/include/clang/Basic/Sanitizers.h
@@ -46,8 +46,6 @@ enum SanitizerOrdinal : uint64_t {
}
struct SanitizerSet {
- SanitizerSet() : Mask(0) {}
-
/// \brief Check if a certain (single) sanitizer is enabled.
bool has(SanitizerMask K) const {
assert(llvm::isPowerOf2_64(K));
@@ -70,7 +68,7 @@ struct SanitizerSet {
bool empty() const { return Mask == 0; }
/// \brief Bitmask of enabled sanitizers.
- SanitizerMask Mask;
+ SanitizerMask Mask = 0;
};
/// Parse a single value from a -fsanitize= or -fno-sanitize= value list.