CodeExtractor is not aware of debugger debugger intrinsics

Hello,

I'm writing a pass using CodeExtractor to pull out a outmost loop as
standalone function. But the 'Module Verifier' issues warning
"function-local metadata used in wrong function". After looking
through the CodeExtractor code, I found nothing about debugger
intrinsics. Is this expected behavior?

Thanks,
yuanfang