r351706 - Tentative fix for r351701 and gcc 6.2 build on ubuntu
Serge Guelton via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 20 15:43:37 PST 2019
Author: serge_sans_paille
Date: Sun Jan 20 15:43:37 2019
New Revision: 351706
URL: http://llvm.org/viewvc/llvm-project?rev=351706&view=rev
Log:
Tentative fix for r351701 and gcc 6.2 build on ubuntu
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=351706&r1=351705&r2=351706&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Sun Jan 20 15:43:37 2019
@@ -11731,19 +11731,19 @@ class SequenceChecker : public Evaluated
};
struct Usage {
- Expr *Use = nullptr;
+ Expr *Use;
SequenceTree::Seq Seq;
- Usage() = default;
+ Usage() : Use(nullptr), Seq() {}
};
struct UsageInfo {
Usage Uses[UK_Count];
/// Have we issued a diagnostic for this variable already?
- bool Diagnosed = false;
+ bool Diagnosed;
- UsageInfo() = default;
+ UsageInfo() : Uses(), Diagnosed(false) {}
};
using UsageInfoMap = llvm::SmallDenseMap<Object, UsageInfo, 16>;
More information about the cfe-commits
mailing list