[clang] f66ba5f - [Sema] Fix -Wparentheses warning from gcc. NFC
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 12 10:05:51 PDT 2021
Author: Craig Topper
Date: 2021-08-12T10:05:27-07:00
New Revision: f66ba5fcef19ff03532d993ac4af1362a89b833f
URL: https://github.com/llvm/llvm-project/commit/f66ba5fcef19ff03532d993ac4af1362a89b833f
DIFF: https://github.com/llvm/llvm-project/commit/f66ba5fcef19ff03532d993ac4af1362a89b833f.diff
LOG: [Sema] Fix -Wparentheses warning from gcc. NFC
Added:
Modified:
clang/lib/Sema/SemaDeclCXX.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 38f21c8ec47c9..a00a72982bac8 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -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
More information about the cfe-commits
mailing list