[llvm] cdf1795 - Add braces to silence a gcc 9.4 -Wdangling-else warning [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 08:13:46 PDT 2022
Author: Philip Reames
Date: 2022-06-16T08:10:34-07:00
New Revision: cdf17953ff27e2b956f8deffb7bc93a1ca5a60cc
URL: https://github.com/llvm/llvm-project/commit/cdf17953ff27e2b956f8deffb7bc93a1ca5a60cc
DIFF: https://github.com/llvm/llvm-project/commit/cdf17953ff27e2b956f8deffb7bc93a1ca5a60cc.diff
LOG: Add braces to silence a gcc 9.4 -Wdangling-else warning [nfc]
Added:
Modified:
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index 23421af13dedd..5547acbb93b57 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -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);
+ }
}
}
More information about the llvm-commits
mailing list