Skip to content

Commit c6e2649

Browse files
committed
[llvm-exegesis] Fix -Wdangling-else gcc warning. NFC.
1 parent 370555c commit c6e2649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ TEST_F(X86SerialSnippetGeneratorTest,
182182
EXPECT_THAT(IT.getOpcode(), Opcode);
183183
ASSERT_THAT(IT.getVariableValues(), SizeIs(3));
184184
for (const auto &Var : IT.getVariableValues()) {
185-
if (Var.isReg())
185+
if (Var.isReg()) {
186186
EXPECT_FALSE(ForbiddenRegisters[Var.getReg()]);
187+
}
187188
}
188189
}
189190
}

0 commit comments

Comments
 (0)