[PM] Track an LLVM API change by switching this code to directly create