r257871 - Fix a -Wparentheses warning in ASTDiagnostic.cpp.
James Y Knight via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 14 21:57:41 PST 2016
Author: jyknight
Date: Thu Jan 14 23:57:41 2016
New Revision: 257871
URL: http://llvm.org/viewvc/llvm-project?rev=257871&view=rev
Log:
Fix a -Wparentheses warning in ASTDiagnostic.cpp.
Modified:
cfe/trunk/lib/AST/ASTDiagnostic.cpp
Modified: cfe/trunk/lib/AST/ASTDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDiagnostic.cpp?rev=257871&r1=257870&r2=257871&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDiagnostic.cpp (original)
+++ cfe/trunk/lib/AST/ASTDiagnostic.cpp Thu Jan 14 23:57:41 2016
@@ -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;
}
More information about the cfe-commits
mailing list