Remove unused variable.

llvm-svn: 134731
This commit is contained in:
Benjamin Kramer 2011-07-08 20:20:17 +00:00
parent dbdff47cb3
commit 65cc1074f3
1 changed files with 1 additions and 2 deletions

View File

@ -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())