]> granicus.if.org Git - clang/commitdiff
Fix uninitialized member found by msan build bot.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 26 Sep 2017 21:33:43 +0000 (21:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 26 Sep 2017 21:33:43 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314246 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 66f0fad138a9b9bd4319a3b3bd1ad03b161e7d2e..66b252e1446e0768c97c9789388c9d6d6c943577 100644 (file)
@@ -10271,7 +10271,7 @@ struct CompareOverloadCandidatesForDisplay {
   CompareOverloadCandidatesForDisplay(
       Sema &S, SourceLocation Loc, size_t NArgs,
       OverloadCandidateSet::CandidateSetKind CSK)
-      : S(S), NumArgs(NArgs) {}
+      : S(S), NumArgs(NArgs), CSK(CSK) {}
 
   bool operator()(const OverloadCandidate *L,
                   const OverloadCandidate *R) {