[PATCH] D142414: Fix warning in JITLink/EHFrameSupportTests.cpp
Philipp Tomsich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 15:53:39 PST 2023
philipp.tomsich created this revision.
Herald added a project: All.
philipp.tomsich requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fixes "warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142414
Files:
llvm/unittests/ExecutionEngine/JITLink/EHFrameSupportTests.cpp
Index: llvm/unittests/ExecutionEngine/JITLink/EHFrameSupportTests.cpp
===================================================================
--- llvm/unittests/ExecutionEngine/JITLink/EHFrameSupportTests.cpp
+++ llvm/unittests/ExecutionEngine/JITLink/EHFrameSupportTests.cpp
@@ -185,8 +185,9 @@
if (CFIBI.isCIE()) {
CIEs.push_back(B);
// If this CIE has an edge, check that getPersonalityEdge returns it.
- if (B->edges_size() != 0)
+ if (B->edges_size() != 0) {
EXPECT_TRUE(!!CFIBI.getPersonalityEdge());
+ }
}
}
ASSERT_EQ(CIEs.size(), 2U);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142414.491530.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230123/28e2bbf7/attachment.bin>
More information about the llvm-commits
mailing list