forked from OSchip/llvm-project
[Sema] Fix -Wparentheses warning from gcc. NFC
This commit is contained in:
parent
6171f84942
commit
f66ba5fcef
|
@ -4437,9 +4437,9 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo, Expr *Init,
|
|||
ExprResult DelegationInit = InitSeq.Perform(*this, DelegationEntity, Kind,
|
||||
Args, nullptr);
|
||||
if (!DelegationInit.isInvalid()) {
|
||||
assert(DelegationInit.get()->containsErrors() ||
|
||||
cast<CXXConstructExpr>(DelegationInit.get())->getConstructor() &&
|
||||
"Delegating constructor with no target?");
|
||||
assert((DelegationInit.get()->containsErrors() ||
|
||||
cast<CXXConstructExpr>(DelegationInit.get())->getConstructor()) &&
|
||||
"Delegating constructor with no target?");
|
||||
|
||||
// C++11 [class.base.init]p7:
|
||||
// The initialization of each base and member constitutes a
|
||||
|
|
Loading…
Reference in New Issue