For and enum_name #37
1027
src/compiler.bbb
1027
src/compiler.bbb
File diff suppressed because it is too large
Load Diff
@ -5172,7 +5172,7 @@ fn SliceEmitResult emit_string_literal(Module* module, Value* value)
|
||||
LLVMThreadLocalMode tlm = LLVMNotThreadLocal;
|
||||
bool externally_initialized = false;
|
||||
u32 alignment = 1;
|
||||
auto global = llvm_create_global_variable(module->llvm.module, string_type, is_constant, LLVMInternalLinkage, constant_string, string_literal("conststring"), tlm, externally_initialized, alignment, LLVMGlobalUnnamedAddr);
|
||||
auto global = llvm_create_global_variable(module->llvm.module, string_type, is_constant, LLVMInternalLinkage, constant_string, string_literal("const.string"), tlm, externally_initialized, alignment, LLVMGlobalUnnamedAddr);
|
||||
|
||||
return { global, LLVMConstInt(uint64(module)->llvm.abi, length, false) };
|
||||
} break;
|
||||
@ -7372,9 +7372,6 @@ fn void emit_value(Module* module, Value* value, TypeKind type_kind, bool expect
|
||||
|
||||
auto* left = value->binary.left;
|
||||
|
||||
auto llvm_function = module->current_function->variable.storage->llvm;
|
||||
assert(llvm_function);
|
||||
|
||||
auto* right_block = LLVMAppendBasicBlockInContext(module->llvm.context, llvm_function, "shortcircuit.right");
|
||||
auto* end_block = LLVMAppendBasicBlockInContext(module->llvm.context, llvm_function, "shortcircuit.end");
|
||||
|
||||
@ -7440,7 +7437,6 @@ fn void emit_value(Module* module, Value* value, TypeKind type_kind, bool expect
|
||||
resolve_type_in_place(module, boolean_type);
|
||||
auto boolean = boolean_type->llvm.abi;
|
||||
|
||||
|
||||
LLVMValueRef incoming_left = 0;
|
||||
|
||||
switch (shorcircuiting_op)
|
||||
@ -8948,6 +8944,8 @@ fn void analyze_statement(Module* module, Scope* scope, Statement* statement, u3
|
||||
}
|
||||
}
|
||||
|
||||
assert(!local);
|
||||
|
||||
analyze_statement(module, &statement->for_each.scope, statement->for_each.predicate, last_line, last_column, last_debug_location);
|
||||
|
||||
if (LLVMGetInsertBlock(module->llvm.builder))
|
||||
|
Loading…
x
Reference in New Issue
Block a user