diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index d84111541d2e..8318b316d8cb 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -2229,7 +2229,7 @@ void Sema::CheckCompletedCXXClass(Scope *S, CXXRecordDecl *Record) { FEnd = Record->field_end(); F != FEnd; ++F) { if (F->getType()->isReferenceType() || - F->getType().isConstQualified() && F->getType()->isScalarType()) { + (F->getType().isConstQualified() && F->getType()->isScalarType())) { if (!Complained) { Diag(Record->getLocation(), diag::warn_no_constructor_for_refconst) << Record->getTagKind() << Record;