[PATCH] D135978: [clang][dataflow][NFC] Fix reachability warning.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 12:28:53 PDT 2022


ymandel added a comment.

In D135978#3859272 <https://reviews.llvm.org/D135978#3859272>, @xazax.hun wrote:

> I'd argue the warning is correct as you could store "non-enum" integer values into an enum typed variable (and people do that fairly often with bitwise enums).

Good point. Feels wrong, but is perfectly legal in C++. :(


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135978



More information about the cfe-commits mailing list