зеркало из https://github.com/microsoft/clang.git
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>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1d441ee69a
Коммит
b27c7a199b
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче