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