Skip to content

Commit 090a81f

Browse files
authored
[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. ```
1 parent 7d673ca commit 090a81f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

clang/lib/StaticAnalyzer/Core/RegionStore.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ using namespace ento;
4343
namespace {
4444
class BindingKey {
4545
public:
46-
enum Kind { Default = 0x0, Direct = 0x1 };
47-
private:
48-
enum { Symbolic = 0x2 };
46+
enum Kind {
47+
Default = 0x0,
48+
Direct = 0x1,
49+
Symbolic = 0x2,
50+
};
4951

52+
private:
5053
llvm::PointerIntPair<const MemRegion *, 2> P;
5154
uint64_t Data;
5255

0 commit comments

Comments
 (0)