aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-07-08 20:20:17 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-07-08 20:20:17 +0000
commit5b4a40a9d740d9025c16fa2f34c80a96906051c3 (patch)
treeae7bbb6b4787bdc2a48fc1f9bf1c3d0440f12e14 /lib
parenta6e023c4491a8a8116c11783f4e81c7bd172f88d (diff)
Remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaCXXCast.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCXXCast.cpp
index 50e39e0d04..d053d5a9e9 100644
--- a/lib/Sema/SemaCXXCast.cpp
+++ b/lib/Sema/SemaCXXCast.cpp
@@ -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())