aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-17 16:57:34 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-17 16:57:34 +0000
commit4e99a5fc3b203397a91136c6e695e405fb8fc606 (patch)
tree2b733364d0b34dfb61041b5d7cbc4d7657963c60 /Sema/SemaChecking.cpp
parent847794a7620bfd5fda09ee06bc0205d30e17e2aa (diff)
Added method Expr::IgnoreParens(), which returns the first non-ParenExpr Expr*.
Refactored the use of this method into both the Sema module and Analysis module, which were using their own static functions that did the same thing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaChecking.cpp')
-rw-r--r--Sema/SemaChecking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sema/SemaChecking.cpp b/Sema/SemaChecking.cpp
index 61c67f02fe..44c559b4d5 100644
--- a/Sema/SemaChecking.cpp
+++ b/Sema/SemaChecking.cpp
@@ -751,8 +751,8 @@ static DeclRefExpr* EvalVal(Expr *E) {
void Sema::CheckFloatComparison(SourceLocation loc, Expr* lex, Expr *rex) {
bool EmitWarning = true;
- Expr* LeftExprSansParen = IgnoreParen(lex);
- Expr* RightExprSansParen = IgnoreParen(rex);
+ Expr* LeftExprSansParen = lex->IgnoreParens();
+ Expr* RightExprSansParen = lex->IgnoreParens();
// Special case: check for x == x (which is OK).
// Do not emit warnings for such cases.