From 5ea1b32631cc82b4ea07e59502f5daf2f2353689 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 16 Sep 2018 12:30:41 +0000 Subject: [PATCH] Fix -Wdangling-else gcc warning. NFCI. llvm-svn: 342344 --- llvm/unittests/Transforms/Utils/LocalTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp index 9dc920d..3868bfb 100644 --- a/llvm/unittests/Transforms/Utils/LocalTest.cpp +++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp @@ -222,10 +222,12 @@ TEST(Local, MergeBasicBlockIntoOnlyPred) { if (Term && !Term->isConditional()) MergeBasicBlockIntoOnlyPred(BB, &DTU); } - if (DTU.hasDomTree()) + if (DTU.hasDomTree()) { EXPECT_TRUE(DTU.getDomTree().verify()); - if (DTU.hasPostDomTree()) + } + if (DTU.hasPostDomTree()) { EXPECT_TRUE(DTU.getPostDomTree().verify()); + } }; // Test MergeBasicBlockIntoOnlyPred working under Eager UpdateStrategy with -- 2.7.4