r199988 - Initialize StandardConversionSequence correctly
Ismail Pazarbasi
ismail.pazarbasi at gmail.com
Fri Jan 24 02:54:12 PST 2014
Author: ismailp
Date: Fri Jan 24 04:54:12 2014
New Revision: 199988
URL: http://llvm.org/viewvc/llvm-project?rev=199988&view=rev
Log:
Initialize StandardConversionSequence correctly
MSAN detected a path that leaves DeprecatedStringLiteralToCharPtr uninitialized.
UserDefinedConversionSequence::First is a StandardConversionSequence that must
be initialized with setAsIdentityConversion.
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=199988&r1=199987&r2=199988&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Jan 24 04:54:12 2014
@@ -4448,7 +4448,7 @@ TryReferenceInit(Sema &S, Expr *Init, Qu
}
}
}
-
+ ICS.UserDefined.Before.setAsIdentityConversion();
ICS.UserDefined.After.ReferenceBinding = true;
ICS.UserDefined.After.IsLvalueReference = !isRValRef;
ICS.UserDefined.After.BindsToFunctionLvalue = T2->isFunctionType();
More information about the cfe-commits
mailing list