]> granicus.if.org Git - clang/commitdiff
Fix a -Wparentheses warning in ASTDiagnostic.cpp.
authorJames Y Knight <jyknight@google.com>
Fri, 15 Jan 2016 05:57:41 +0000 (05:57 +0000)
committerJames Y Knight <jyknight@google.com>
Fri, 15 Jan 2016 05:57:41 +0000 (05:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257871 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTDiagnostic.cpp

index cff9251329849254fbe6c62d3d206666cda44fc9..2ab5a32917ae28c668d24e1f7b08916a105d00ef 100644 (file)
@@ -687,7 +687,7 @@ class TemplateDiff {
 
     /// SetDefault - Sets FromDefault and ToDefault flags of the current node.
     void SetDefault(bool FromDefault, bool ToDefault) {
-      assert(!FromDefault || !ToDefault && "Both arguments cannot be default.");
+      assert((!FromDefault || !ToDefault) && "Both arguments cannot be default.");
       FlatTree[CurrentNode].FromArgInfo.IsDefault = FromDefault;
       FlatTree[CurrentNode].ToArgInfo.IsDefault = ToDefault;
     }