the failed compile in PR8751.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121192
91177308-0d34-0410-b5e6-
96231b3b80d8
// Should this get its own ICK?
if (From->getObjectKind() == OK_ObjCProperty) {
ConvertPropertyForRValue(From);
- if (!From->isRValue()) break;
+ if (!From->isGLValue()) break;
}
FromType = FromType.getUnqualifiedType();
return;
}
+ for (unsigned I = 0; I != NumArgs; ++I)
+ if (Args[I]->getObjectKind() == OK_ObjCProperty)
+ S.ConvertPropertyForRValue(Args[I]);
+
QualType SourceType;
Expr *Initializer = 0;
if (NumArgs == 1) {
/*AllowExplicitConversions*/ false,
/*InOverloadResolution*/ false))
{
- if (Initializer->getType() == Context.OverloadTy )
+ if (Initializer->getType() == Context.OverloadTy)
SetFailed(InitializationSequence::FK_AddressOfOverloadFailed);
else
SetFailed(InitializationSequence::FK_ConversionFailed);