]> granicus.if.org Git - clang/commitdiff
[NFC] Fix wParentheses warning in ASTContext getFixedPointSemantics
authorErich Keane <erich.keane@intel.com>
Fri, 18 Jan 2019 19:31:54 +0000 (19:31 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 18 Jan 2019 19:31:54 +0000 (19:31 +0000)
Change-Id: I862f00a548236872fe24f7da8eb2bf7917e123ff

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351576 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index ed203a331d524a24ebf0c36c59db14827b2cc769..caf6a504cd55108dba5f1c2717b9a99dea989445 100644 (file)
@@ -10485,9 +10485,9 @@ unsigned char ASTContext::getFixedPointIBits(QualType Ty) const {
 }
 
 FixedPointSemantics ASTContext::getFixedPointSemantics(QualType Ty) const {
-  assert(Ty->isFixedPointType() ||
-         Ty->isIntegerType() && "Can only get the fixed point semantics for a "
-                                "fixed point or integer type.");
+  assert((Ty->isFixedPointType() || Ty->isIntegerType()) &&
+         "Can only get the fixed point semantics for a "
+         "fixed point or integer type.");
   if (Ty->isIntegerType())
     return FixedPointSemantics::GetIntegerSemantics(getIntWidth(Ty),
                                                     Ty->isSignedIntegerType());