Fix -Wparentheses warning. NFCI.

llvm-svn: 362491
This commit is contained in:
Simon Pilgrim 2019-06-04 11:31:45 +00:00
parent 580c6d31c0
commit 5b41fe58de
1 changed files with 2 additions and 2 deletions

View File

@ -832,8 +832,8 @@ llvm::json::Value toJSON(const CompletionList &L) {
}
llvm::json::Value toJSON(const ParameterInformation &PI) {
assert(PI.labelOffsets.hasValue() ||
!PI.labelString.empty() && "parameter information label is required");
assert((PI.labelOffsets.hasValue() || !PI.labelString.empty()) &&
"parameter information label is required");
llvm::json::Object Result;
if (PI.labelOffsets)
Result["label"] =