forked from OSchip/llvm-project
parent
dbdff47cb3
commit
65cc1074f3
|
@ -1717,8 +1717,7 @@ Sema::CXXCheckCStyleCast(SourceRange R, QualType CastTy, ExprValueKind &VK,
|
||||||
Kind = CK_Dependent;
|
Kind = CK_Dependent;
|
||||||
return Owned(CastExpr);
|
return Owned(CastExpr);
|
||||||
}
|
}
|
||||||
|
|
||||||
QualType origCastExprType = CastExpr->getType();
|
|
||||||
if (VK == VK_RValue && !CastTy->isRecordType()) {
|
if (VK == VK_RValue && !CastTy->isRecordType()) {
|
||||||
ExprResult CastExprRes = DefaultFunctionArrayLvalueConversion(CastExpr);
|
ExprResult CastExprRes = DefaultFunctionArrayLvalueConversion(CastExpr);
|
||||||
if (CastExprRes.isInvalid())
|
if (CastExprRes.isInvalid())
|
||||||
|
|
Loading…
Reference in New Issue