diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-01-31 15:26:03 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-01-31 15:26:03 +0000 |
| commit | b4e86d8a716f9358e02ad9515fac6a902b56b896 (patch) | |
| tree | aa09e1f7c06b2936ed660336f5a6b2f7fde4077f | |
| parent | a4b1cf328296a0a56f987921576eb29df9fe9c8c (diff) | |
| download | bcm5719-llvm-b4e86d8a716f9358e02ad9515fac6a902b56b896.tar.gz bcm5719-llvm-b4e86d8a716f9358e02ad9515fac6a902b56b896.zip | |
Accomodate gcc 7.3.0's -Wdangling-else
llvm-svn: 352761
| -rw-r--r-- | clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp b/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp index ba99548a703..d8988a0ee30 100644 --- a/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp +++ b/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp @@ -88,8 +88,9 @@ public: void checkLocation(SVal Loc, bool IsLoad, const Stmt *S, CheckerContext &C) const { auto UnaryOp = dyn_cast<UnaryOperator>(S); - if (UnaryOp && !IsLoad) + if (UnaryOp && !IsLoad) { EXPECT_FALSE(UnaryOp->isIncrementOp()); + } } }; |

