From 728ffd000a33f2c2f686c5bf7dbfa95eb4dc81a3 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 14 May 2019 14:58:47 +0000 Subject: [PATCH] [Sema] CodeSynthesisContext - add missing variable initialization to constructor. NFCI. SavedInNonInstantiationSFINAEContext isn't used outside of specific contexts but this fixes cppcheck and scan-build warnings. llvm-svn: 360681 --- clang/include/clang/Sema/Sema.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 51302a2..94127fe 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -7420,8 +7420,10 @@ public: SourceRange InstantiationRange; CodeSynthesisContext() - : Kind(TemplateInstantiation), Entity(nullptr), Template(nullptr), - TemplateArgs(nullptr), NumTemplateArgs(0), DeductionInfo(nullptr) {} + : Kind(TemplateInstantiation), + SavedInNonInstantiationSFINAEContext(false), Entity(nullptr), + Template(nullptr), TemplateArgs(nullptr), NumTemplateArgs(0), + DeductionInfo(nullptr) {} /// Determines whether this template is an actual instantiation /// that should be counted toward the maximum instantiation depth. -- 2.7.4