MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / add_backpatch_entry

Method add_backpatch_entry

sql/sp_head.cc:576–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574
575
576bool sp_parser_data::add_backpatch_entry(sp_branch_instr *i,
577 sp_label *label)
578{
579 Backpatch_info *bp= (Backpatch_info *)sql_alloc(sizeof(Backpatch_info));
580
581 if (!bp)
582 return true;
583
584 bp->label= label;
585 bp->instr= i;
586 return m_backpatch.push_front(bp);
587}
588
589
590void sp_parser_data::do_backpatch(sp_label *label, uint dest)

Callers

nothing calls this directly

Calls 2

sql_allocFunction · 0.85
push_frontMethod · 0.45

Tested by

no test coverage detected