llvm.org GIT mirror llvm / 45e56bf
Fix gcc7 -Wdangling-else warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349760 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 9 months ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
127127
128128 FunctionSamples *ReadFooSamples = Reader->getSamplesFor(FooName);
129129 ASSERT_TRUE(ReadFooSamples != nullptr);
130 if (Format != SampleProfileFormat::SPF_Compact_Binary)
130 if (Format != SampleProfileFormat::SPF_Compact_Binary) {
131131 ASSERT_EQ("_Z3fooi", ReadFooSamples->getName());
132 }
132133 ASSERT_EQ(7711u, ReadFooSamples->getTotalSamples());
133134 ASSERT_EQ(610u, ReadFooSamples->getHeadSamples());
134135
135136 FunctionSamples *ReadBarSamples = Reader->getSamplesFor(BarName);
136137 ASSERT_TRUE(ReadBarSamples != nullptr);
137 if (Format != SampleProfileFormat::SPF_Compact_Binary)
138 if (Format != SampleProfileFormat::SPF_Compact_Binary) {
138139 ASSERT_EQ("_Z3bari", ReadBarSamples->getName());
140 }
139141 ASSERT_EQ(20301u, ReadBarSamples->getTotalSamples());
140142 ASSERT_EQ(1437u, ReadBarSamples->getHeadSamples());
141143 ErrorOr CTMap =