forked from OSchip/llvm-project
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:
parent
af8e014761
commit
99afd96703
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue