From: Douglas Gregor Date: Wed, 22 Jun 2011 18:41:08 +0000 (+0000) Subject: Fix the starting location of the Fix-It note for suspicious precedence X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b27c7a199baaf691c724951a1bf3e6df9dcf5b6d;p=clang Fix the starting location of the Fix-It note for suspicious precedence issues between a bitwise operator and a comparison operator. Fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133630 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index b830ba4731..521f19c8cb 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -9142,7 +9142,8 @@ static void DiagnoseBitwisePrecedence(Sema &Self, BinaryOperatorKind Opc, SuggestParentheses(Self, OpLoc, Self.PDiag(diag::note_precedence_bitwise_first) << BinOp::getOpcodeStr(Opc), - SourceRange(lhs->getLocEnd(), cast(rhs)->getLHS()->getLocStart())); + SourceRange(lhs->getLocStart(), + cast(rhs)->getLHS()->getLocStart())); } }