================
@@ -132,6 +132,7 @@ class PreloadKernelArgInfo {
     NF->setAttributes(AL);
     F.replaceAllUsesWith(NF);
     F.setCallingConv(CallingConv::C);
+    F.clearMetadata();
----------------
slinder1 wrote:

I'm a bit lost, isn't any useful metadata already poached by the new function? 
Is the original function declaration still meaningful in any way? 

https://github.com/llvm/llvm-project/pull/126147
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to