forked from OSchip/llvm-project
parent
dbdff47cb3
commit
65cc1074f3
|
@ -1718,7 +1718,6 @@ Sema::CXXCheckCStyleCast(SourceRange R, QualType CastTy, ExprValueKind &VK,
|
||||||
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