Initialize StandardConversionSequence correctly

MSAN detected a path that leaves DeprecatedStringLiteralToCharPtr uninitialized.
UserDefinedConversionSequence::First is a StandardConversionSequence that must
be initialized with setAsIdentityConversion.

llvm-svn: 199988
This commit is contained in:
Ismail Pazarbasi 2014-01-24 10:54:12 +00:00
parent af8e014761
commit 99afd96703
1 changed files with 1 additions and 1 deletions

View File

@ -4448,7 +4448,7 @@ TryReferenceInit(Sema &S, Expr *Init, QualType DeclType,
}
}
}
ICS.UserDefined.Before.setAsIdentityConversion();
ICS.UserDefined.After.ReferenceBinding = true;
ICS.UserDefined.After.IsLvalueReference = !isRValRef;
ICS.UserDefined.After.BindsToFunctionLvalue = T2->isFunctionType();