[clang] Fix a couple of gcc Wparentheses warnings. NFC. (#177134)
This commit is contained in:
parent
5afabf1ae8
commit
7dfd963812
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user