git://git.jankratochvil.net
/
lldb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2331c8b
)
Fix a -Wparentheses warning in ASTDiagnostic.cpp.
author
James Y Knight
<jyknight@google.com>
Fri, 15 Jan 2016 05:57:41 +0000
(
05:57
+0000)
committer
James Y Knight
<jyknight@google.com>
Fri, 15 Jan 2016 05:57:41 +0000
(
05:57
+0000)
llvm-svn: 257871
clang/lib/AST/ASTDiagnostic.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ASTDiagnostic.cpp
b/clang/lib/AST/ASTDiagnostic.cpp
index
cff9251
..
2ab5a32
100644
(file)
--- 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) {
/// 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;
}
FlatTree[CurrentNode].FromArgInfo.IsDefault = FromDefault;
FlatTree[CurrentNode].ToArgInfo.IsDefault = ToDefault;
}