aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-03 03:30:59 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-03 03:30:59 +0000
commitd77ba899b3ed39aa4bdba22aabc4bcd5ca6effdf (patch)
treef2674b775a3e99540e7f12e3b87bbcd2d283d2b2 /lib/Sema/SemaExpr.cpp
parentbf3380a317ab09ae7f23c1bc17cb562f8175a986 (diff)
Make helpers static, remove unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 91cc7a923e..800f8e3061 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -5978,8 +5978,6 @@ QualType Sema::CheckAdditionOperands( // C99 6.5.6
if (!checkArithmeticOpPointerOperand(*this, Loc, PExp))
return QualType();
- QualType PointeeTy = PExp->getType()->getPointeeType();
-
// Diagnose bad cases where we step over interface counts.
if (!checkArithmethicPointerOnNonFragileABI(*this, Loc, PExp))
return QualType();
@@ -6210,8 +6208,6 @@ static bool IsWithinTemplateSpecialization(Decl *D) {
/// If two different enums are compared, raise a warning.
static void checkEnumComparison(Sema &S, SourceLocation Loc, ExprResult &lex,
ExprResult &rex) {
- QualType lType = lex.get()->getType();
- QualType rType = rex.get()->getType();
QualType LHSStrippedType = lex.get()->IgnoreParenImpCasts()->getType();
QualType RHSStrippedType = rex.get()->IgnoreParenImpCasts()->getType();