From: Ismail Pazarbasi Date: Fri, 24 Jan 2014 13:16:17 +0000 (+0000) Subject: Added missing StandardConversionSequence initialization X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=708fa8c227c9b112c536d5f9c09531643bf83521;p=clang Added missing StandardConversionSequence initialization This is the second msan failure where UserDefinedConversion does not initialize its `Before` member as identity conversion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199997 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index d5c13dd112..2a3ab80ba4 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -1134,6 +1134,7 @@ TryUserDefinedConversion(Sema &S, Expr *From, QualType ToType, if (UserDefResult == OR_Success) { ICS.setUserDefined(); + ICS.UserDefined.Before.setAsIdentityConversion(); // C++ [over.ics.user]p4: // A conversion of an expression of class type to the same class // type is given Exact Match rank, and a conversion of an