[PATCH] D124807: [clang][dataflow] Avoid assert for invalid cast to BoolValue

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 3 05:54:03 PDT 2022


ymandel added a comment.

Thanks for the patch!



================
Comment at: clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp:1155
 
+// FIXME: Remove this test once it provides no additional test coverage.
+TEST_F(FlowConditionTest, DoesNotAssertForImplicitCastToBool) {
----------------
This  seems a worthwhile case to cover.  What about converting it to a more useful test, similar to the other branch tests?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124807/new/

https://reviews.llvm.org/D124807



More information about the cfe-commits mailing list