> getSubtargetCopy is called here because STI is a unique_ptr and gets destructed when it goes out of scope. We don't need a copy here, but we need a subtarget object that is kept alive until it is used. Oh, OK. LGTM with the patch split in two. Cheers, Rafael