]> granicus.if.org Git - clang/commit
Fix gcc compilation warning in an assert [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 9 May 2019 12:11:57 +0000 (12:11 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 9 May 2019 12:11:57 +0000 (12:11 +0000)
commite889472f6daf2da06925f0124a983e3f0e10cb61
treefa3a764845db7e7ec32f7b394dadaa8117ee793d
parent627d73ca1fec6bdff9f39c9b70cf1f3e9fd86781
Fix gcc compilation warning in an assert [NFC]

Without this, gcc (7.4) complains with

../tools/clang/lib/Parse/ParseDecl.cpp:3937:63: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
     assert(!isAlreadyConsumed || RangeEnd != SourceLocation() &&
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
                                      "both or neither of isAlreadyConsumed and "
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                      "RangeEnd needs to be set");
                                      ~

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp