mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
VS: Fix compilation using VS 2022.
This commit is contained in:
+1
-1
@@ -826,7 +826,7 @@ void check_bit_set_type(CheckerContext *c, Type *type, Type *named_type, Ast *no
|
|||||||
GB_ASSERT(type->kind == Type_BitSet);
|
GB_ASSERT(type->kind == Type_BitSet);
|
||||||
type->BitSet.node = node;
|
type->BitSet.node = node;
|
||||||
|
|
||||||
i64 const DEFAULT_BITS = cast(i64)(8*build_context.word_size);
|
/* i64 const DEFAULT_BITS = cast(i64)(8*build_context.word_size); */
|
||||||
i64 const MAX_BITS = 128;
|
i64 const MAX_BITS = 128;
|
||||||
|
|
||||||
Ast *base = unparen_expr(bs->elem);
|
Ast *base = unparen_expr(bs->elem);
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ LLVMMetadataRef lb_debug_type_internal_proc(lbModule *m, Type *type) {
|
|||||||
|
|
||||||
GB_ASSERT(type != t_invalid);
|
GB_ASSERT(type != t_invalid);
|
||||||
|
|
||||||
unsigned const word_size = cast(unsigned)build_context.word_size;
|
/* unsigned const word_size = cast(unsigned)build_context.word_size;
|
||||||
unsigned const word_bits = cast(unsigned)(8*build_context.word_size);
|
unsigned const word_bits = cast(unsigned)(8*build_context.word_size); */
|
||||||
|
|
||||||
GB_ASSERT(type->kind == Type_Proc);
|
GB_ASSERT(type->kind == Type_Proc);
|
||||||
unsigned parameter_count = 1;
|
unsigned parameter_count = 1;
|
||||||
@@ -129,7 +129,7 @@ LLVMMetadataRef lb_debug_type_internal(lbModule *m, Type *type) {
|
|||||||
|
|
||||||
GB_ASSERT(type != t_invalid);
|
GB_ASSERT(type != t_invalid);
|
||||||
|
|
||||||
unsigned const word_size = cast(unsigned)build_context.word_size;
|
/* unsigned const word_size = cast(unsigned)build_context.word_size; */
|
||||||
unsigned const word_bits = cast(unsigned)(8*build_context.word_size);
|
unsigned const word_bits = cast(unsigned)(8*build_context.word_size);
|
||||||
|
|
||||||
switch (type->kind) {
|
switch (type->kind) {
|
||||||
@@ -564,7 +564,7 @@ LLVMMetadataRef lb_debug_type(lbModule *m, Type *type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void lb_debug_complete_types(lbModule *m) {
|
void lb_debug_complete_types(lbModule *m) {
|
||||||
unsigned const word_size = cast(unsigned)build_context.word_size;
|
/* unsigned const word_size = cast(unsigned)build_context.word_size; */
|
||||||
unsigned const word_bits = cast(unsigned)(8*build_context.word_size);
|
unsigned const word_bits = cast(unsigned)(8*build_context.word_size);
|
||||||
|
|
||||||
for_array(debug_incomplete_type_index, m->debug_incomplete_types) {
|
for_array(debug_incomplete_type_index, m->debug_incomplete_types) {
|
||||||
|
|||||||
Reference in New Issue
Block a user