Author: Balazs Benics Date: 2025-09-09T15:37:02+02:00 New Revision: 090a81fbfac1c1cf2fb4021b035c47dcd2d35772
URL: https://github.com/llvm/llvm-project/commit/090a81fbfac1c1cf2fb4021b035c47dcd2d35772 DIFF: https://github.com/llvm/llvm-project/commit/090a81fbfac1c1cf2fb4021b035c47dcd2d35772.diff LOG: [analyzer][NFC] Fix a warning in RegionStore.cpp (#157630) ``` clang/lib/StaticAnalyzer/Core/RegionStore.cpp: warning: bitwise operation between different enumeration types ('Kind' and '(anonymous namespace)::BindingKey::(unnamed enum at clang/lib/StaticAnalyzer/Core/RegionStore.cpp)') is deprecated [-Wdeprecated-anon-enum-enum-conversion] XX | : P(r, k | Symbolic), Data(reinterpret_cast<uintptr_t>(Base)) { | ~ ^ ~~~~~~~~ 1 warning generated. ``` Added: Modified: clang/lib/StaticAnalyzer/Core/RegionStore.cpp Removed: ################################################################################ diff --git a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp index 8f18533af68b9..8e9d6fe59e6ae 100644 --- a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp +++ b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp @@ -43,10 +43,13 @@ using namespace ento; namespace { class BindingKey { public: - enum Kind { Default = 0x0, Direct = 0x1 }; -private: - enum { Symbolic = 0x2 }; + enum Kind { + Default = 0x0, + Direct = 0x1, + Symbolic = 0x2, + }; +private: llvm::PointerIntPair<const MemRegion *, 2> P; uint64_t Data; _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
