From 708fa8c227c9b112c536d5f9c09531643bf83521 Mon Sep 17 00:00:00 2001 From: Ismail Pazarbasi <ismail.pazarbasi@gmail.com> Date: Fri, 24 Jan 2014 13:16:17 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaOverload.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index d5c13dd1120..2a3ab80ba4f 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 -- GitLab