From: Ted Kremenek Date: Thu, 17 Jan 2008 17:55:13 +0000 (+0000) Subject: Fixed typo introduced by r46133 that caused -Wfloat-equal to break. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32e97b66bbce16c9e81c877794fb7a0aeeb66ccb;p=clang Fixed typo introduced by r46133 that caused -Wfloat-equal to break. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46134 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaChecking.cpp b/Sema/SemaChecking.cpp index 44c559b4d5..470211d9ab 100644 --- a/Sema/SemaChecking.cpp +++ b/Sema/SemaChecking.cpp @@ -752,7 +752,7 @@ void Sema::CheckFloatComparison(SourceLocation loc, Expr* lex, Expr *rex) { bool EmitWarning = true; Expr* LeftExprSansParen = lex->IgnoreParens(); - Expr* RightExprSansParen = lex->IgnoreParens(); + Expr* RightExprSansParen = rex->IgnoreParens(); // Special case: check for x == x (which is OK). // Do not emit warnings for such cases.