From b27c7a199baaf691c724951a1bf3e6df9dcf5b6d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 22 Jun 2011 18:41:08 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaExpr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())); } } -- 2.50.1