summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2667afa980fe6b92b8a51e5756db39a84c493c1a (patch)
treef5bf7cfb8aa3de65234c8ebb120cc90a5106a1f2 /clang/lib/Sema/SemaExpr.cpp
parentd551d4e1dae50b4d8a613d62afdafba3ecbd8cc8 (diff)
downloadbcm5719-llvm-2667afa980fe6b92b8a51e5756db39a84c493c1a.tar.gz
bcm5719-llvm-2667afa980fe6b92b8a51e5756db39a84c493c1a.zip
Make helpers static, remove unused variables.
llvm-svn: 139078
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 91cc7a923e6..800f8e3061a 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud