mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 02:42:22 -07:00
Minor clean up
This commit is contained in:
+3
-2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user