r199997 - Added missing StandardConversionSequence initialization
Ismail Pazarbasi
ismail.pazarbasi at gmail.com
Fri Jan 24 05:16:18 PST 2014
Author: ismailp
Date: Fri Jan 24 07:16:17 2014
New Revision: 199997
URL: http://llvm.org/viewvc/llvm-project?rev=199997&view=rev
Log:
Added missing StandardConversionSequence initialization
This is the second msan failure where UserDefinedConversion does not initialize
its `Before` member as identity conversion.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=199997&r1=199996&r2=199997&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Jan 24 07:16:17 2014
@@ -1134,6 +1134,7 @@ TryUserDefinedConversion(Sema &S, Expr *
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
More information about the cfe-commits
mailing list