summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-22 18:41:08 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-22 18:41:08 +0000
commitbb9a5e6df1ff42c595f09facaf9db6430b1a5a70 (patch)
tree02aa1d3c6c4ff34913895d7ad9a021c73e0536d2 /clang/lib
parentad63637f3f742ca27be585dc1484a2009442cd3d (diff)
downloadbcm5719-llvm-bb9a5e6df1ff42c595f09facaf9db6430b1a5a70.tar.gz
bcm5719-llvm-bb9a5e6df1ff42c595f09facaf9db6430b1a5a70.zip
Fix the starting location of the Fix-It note for suspicious precedence
issues between a bitwise operator and a comparison operator. Fixes <rdar://problem/9637759>. llvm-svn: 133630
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index b830ba47316..521f19c8cb5 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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<BinOp>(rhs)->getLHS()->getLocStart()));
+ SourceRange(lhs->getLocStart(),
+ cast<BinOp>(rhs)->getLHS()->getLocStart()));
}
}
OpenPOWER on IntegriCloud