diff options
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 4 |
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(); |