[clang] 9ae4275 - [clang][NFC] Fix needless double-parenthisation
Andy Wingo via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 21 08:03:37 PDT 2021
Author: Andy Wingo
Date: 2021-09-21T17:03:23+02:00
New Revision: 9ae4275557ca10f79af91ca99a2aa79d5dfd7ed3
URL: https://github.com/llvm/llvm-project/commit/9ae4275557ca10f79af91ca99a2aa79d5dfd7ed3
DIFF: https://github.com/llvm/llvm-project/commit/9ae4275557ca10f79af91ca99a2aa79d5dfd7ed3.diff
LOG: [clang][NFC] Fix needless double-parenthisation
Strip a layer of parentheses in TreeTransform::RebuildQualifiedType.
Differential Revision: https://reviews.llvm.org/D108359
Added:
Modified:
clang/lib/Sema/TreeTransform.h
Removed:
################################################################################
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 0aee33a51633..9c1236841b30 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -4745,8 +4745,8 @@ QualType TreeTransform<Derived>::RebuildQualifiedType(QualType T,
SourceLocation Loc = TL.getBeginLoc();
Qualifiers Quals = TL.getType().getLocalQualifiers();
- if (((T.getAddressSpace() != LangAS::Default &&
- Quals.getAddressSpace() != LangAS::Default)) &&
+ if ((T.getAddressSpace() != LangAS::Default &&
+ Quals.getAddressSpace() != LangAS::Default) &&
T.getAddressSpace() != Quals.getAddressSpace()) {
SemaRef.Diag(Loc, diag::err_address_space_mismatch_templ_inst)
<< TL.getType() << T;
More information about the cfe-commits
mailing list