[clang] Fix a couple of gcc Wparentheses warnings. NFC. (#177134)

This commit is contained in:
Simon Pilgrim 2026-01-21 10:32:46 +00:00 committed by GitHub
parent 5afabf1ae8
commit 7dfd963812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -402,9 +402,9 @@ void FactsGenerator::VisitMaterializeTemporaryExpr(
if (!MTEList)
return;
OriginList *SubExprList = getOriginsList(*MTE->getSubExpr());
assert(!SubExprList ||
MTEList->getLength() == SubExprList->getLength() + 1 &&
"MTE top level origin should contain a loan to the MTE itself");
assert((!SubExprList ||
MTEList->getLength() == (SubExprList->getLength() + 1)) &&
"MTE top level origin should contain a loan to the MTE itself");
MTEList = getRValueOrigins(MTE, MTEList);
if (getChildBinding(MTE)) {
// Issue a loan to MTE for the storage location represented by MTE.

View File

@ -24816,9 +24816,8 @@ SemaOpenMP::ActOnOpenMPUseDeviceAddrClause(ArrayRef<Expr *> VarList,
// Get the declaration from the components
ValueDecl *CurDeclaration = CurComponents.back().getAssociatedDeclaration();
assert(isa<CXXThisExpr>(BE) ||
CurDeclaration &&
"Unexpected null decl for use_device_addr clause.");
assert((isa<CXXThisExpr>(BE) || CurDeclaration) &&
"Unexpected null decl for use_device_addr clause.");
MVLI.VarBaseDeclarations.push_back(CurDeclaration);
MVLI.VarComponents.resize(MVLI.VarComponents.size() + 1);