https://github.com/stefanp-ibm approved this pull request. LGTM Thank you for fixing this. I didn't think of the metadata and I didn't realize that the code would just replace the global with `null` in the metadata. https://github.com/llvm/llvm-project/pull/77364