Add braces to silence a gcc 9.4 -Wdangling-else warning [nfc]

This commit is contained in:
Philip Reames 2022-06-16 08:10:34 -07:00 committed by Philip Reames
parent 4a3e46115a
commit cdf17953ff
1 changed files with 2 additions and 1 deletions

View File

@ -4776,8 +4776,9 @@ TEST_F(OpenMPIRBuilderTest, CreateTask) {
// Verify that the argument data has been copied
for (User *in : TaskAllocCall->users()) {
if (MemCpyInst *memCpyInst = dyn_cast<MemCpyInst>(in))
if (MemCpyInst *memCpyInst = dyn_cast<MemCpyInst>(in)) {
EXPECT_EQ(memCpyInst->getDest(), TaskAllocCall);
}
}
}