Project

General

Profile

« Previous | Next » 

Revision 93b69971

Added by alanwu (Alan Wu) over 2 years ago

YJIT: Fix overlapping &mut in Assembler::code_gc()

Making overlapping &muts triggers Undefined Bahavior. This function
previously had them through cb and ocb aliasing with self or live
references in the caller.

To fix the overlap, take ocb as a parameter and don't use get_inline_cb()
in the body of the function.