diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-05 14:34:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-05 14:34:29 +0000 |
| commit | 3439139b1c763fe239967bd8c90d8ccbc1e0867f (patch) | |
| tree | 148f55c5400a179b3e90b41b2679bc865560d6b5 /src/check_expr.cpp | |
| parent | cf246f65ff72db870313627b7db3b83601364385 (diff) | |
Minor clean up
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index b2ce6c897..d90f93180 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -6961,7 +6961,9 @@ struct TypeAndToken { Token token; }; -void add_constant_switch_case(CheckerContext *ctx, PtrMap<uintptr, TypeAndToken> *seen, Operand operand, bool use_expr = true) { +typedef PtrMap<uintptr, TypeAndToken> SeenMap; + +void add_constant_switch_case(CheckerContext *ctx, SeenMap *seen, Operand operand, bool use_expr = true) { if (operand.mode != Addressing_Constant) { return; } @@ -7002,7 +7004,6 @@ void add_constant_switch_case(CheckerContext *ctx, PtrMap<uintptr, TypeAndToken> multi_map_insert(seen, key, tap); } -typedef PtrMap<uintptr, TypeAndToken> SeenMap; void add_to_seen_map(CheckerContext *ctx, SeenMap *seen, TokenKind upper_op, Operand const &x, Operand const &lhs, Operand const &rhs) { if (is_type_enum(x.type)) { |