summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTDiagnostic.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2016-01-15 05:57:41 +0000
committerJames Y Knight <jyknight@google.com>2016-01-15 05:57:41 +0000
commit925d60ee1e6be56b92558035593c8fa5fa3f0e78 (patch)
treebe2eba9d958fd54522231c8b1b4b358916232b61 /clang/lib/AST/ASTDiagnostic.cpp
parent2331c8bdd3df632891fa4bc066b76e69ce3bb8e6 (diff)
Fix a -Wparentheses warning in ASTDiagnostic.cpp.
llvm-svn: 257871
Diffstat (limited to 'clang/lib/AST/ASTDiagnostic.cpp')
-rw-r--r--clang/lib/AST/ASTDiagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTDiagnostic.cpp b/clang/lib/AST/ASTDiagnostic.cpp
index cff925132984..2ab5a32917ae 100644
--- a/clang/lib/AST/ASTDiagnostic.cpp
+++ b/clang/lib/AST/ASTDiagnostic.cpp
@@ -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;
}