authorgravatar for kt@connectfree.co.jpkristopher tate <kt@connectfree.co.jp> 2018-07-28 15:38:22+09:00
committergravatar for kt@connectfree.co.jpkristopher tate <kt@connectfree.co.jp> 2018-08-02 16:50:08+09:00
logfcf53b31fc2899cba682c4c9a8cade40c6e0ab9e
tree2106ce4dbb8e12cfad2accccf6a9cf62746e39b1
parent1f0040dd92f64cebf77a5ce34bd72984d92b3f2f

src/ir.cpp: return promise->T instead of promise;

Tracking Issue #1296 ; Thanks @andrewrk ;

1 files changed, 3 insertions(+), 2 deletions(-)

src/ir.cpp+3-2
...@@ -19033,8 +19033,9 @@ static TypeTableEntry *ir_analyze_instruction_frame_address(IrAnalyze *ira, IrIn...@@ -19033,8 +19033,9 @@ static TypeTableEntry *ir_analyze_instruction_frame_address(IrAnalyze *ira, IrIn
19033static TypeTableEntry *ir_analyze_instruction_handle(IrAnalyze *ira, IrInstructionHandle *instruction) {19033static TypeTableEntry *ir_analyze_instruction_handle(IrAnalyze *ira, IrInstructionHandle *instruction) {
19034 ir_build_handle_from(&ira->new_irb, &instruction->base);19034 ir_build_handle_from(&ira->new_irb, &instruction->base);
1903519035
19036 TypeTableEntry *promise_type = get_promise_type(ira->codegen, nullptr);19036 FnTableEntry *fn_entry = exec_fn_entry(ira->new_irb.exec);
19037 return promise_type;19037 assert(fn_entry != nullptr);
19038 return get_promise_type(ira->codegen, fn_entry->type_entry->data.fn.fn_type_id.return_type);
19038}19039}
1903919040
19040static TypeTableEntry *ir_analyze_instruction_align_of(IrAnalyze *ira, IrInstructionAlignOf *instruction) {19041static TypeTableEntry *ir_analyze_instruction_align_of(IrAnalyze *ira, IrInstructionAlignOf *instruction) {