r360681 - [Sema] CodeSynthesisContext - add missing variable initialization to constructor. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue May 14 07:58:47 PDT 2019
Author: rksimon
Date: Tue May 14 07:58:47 2019
New Revision: 360681
URL: http://llvm.org/viewvc/llvm-project?rev=360681&view=rev
Log:
[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.
Modified:
cfe/trunk/include/clang/Sema/Sema.h
Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=360681&r1=360680&r2=360681&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Tue May 14 07:58:47 2019
@@ -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.
More information about the cfe-commits
mailing list