From: Nico Weber Date: Thu, 31 Jan 2019 15:26:03 +0000 (+0000) Subject: Accomodate gcc 7.3.0's -Wdangling-else X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a87ff88c6466fbedd6281513b9480a2cad6c08c8;p=clang Accomodate gcc 7.3.0's -Wdangling-else git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp b/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp index ba99548a70..d8988a0ee3 100644 --- a/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp +++ b/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(S); - if (UnaryOp && !IsLoad) + if (UnaryOp && !IsLoad) { EXPECT_FALSE(UnaryOp->isIncrementOp()); + } } };