[cfe-commits] r141510 - /cfe/trunk/lib/Sema/SemaInit.cpp

Benjamin Kramer benny.kra at googlemail.com
Sun Oct 9 10:58:25 PDT 2011


Author: d0k
Date: Sun Oct  9 12:58:25 2011
New Revision: 141510

URL: http://llvm.org/viewvc/llvm-project?rev=141510&view=rev
Log:
Initialize the HadMultipleCandidates flag.

Found by valgrind.

Modified:
    cfe/trunk/lib/Sema/SemaInit.cpp

Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=141510&r1=141509&r2=141510&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Sun Oct  9 12:58:25 2011
@@ -2552,6 +2552,7 @@
   Step S;
   S.Kind = SK_ResolveAddressOfOverloadedFunction;
   S.Type = Function->getType();
+  S.Function.HadMultipleCandidates = false;
   S.Function.Function = Function;
   S.Function.FoundDecl = Found;
   Steps.push_back(S);
@@ -2591,6 +2592,7 @@
   Step S;
   S.Kind = SK_UserConversion;
   S.Type = T;
+  S.Function.HadMultipleCandidates = false;
   S.Function.Function = Function;
   S.Function.FoundDecl = FoundDecl;
   Steps.push_back(S);
@@ -2640,6 +2642,7 @@
   Step S;
   S.Kind = SK_ConstructorInitialization;
   S.Type = T;
+  S.Function.HadMultipleCandidates = false;
   S.Function.Function = Constructor;
   S.Function.FoundDecl = DeclAccessPair::make(Constructor, Access);
   Steps.push_back(S);





More information about the cfe-commits mailing list