================
@@ -194,6 +194,15 @@ void CloneFunctionMetadataInto(Function *NewFunc, const 
Function *OldFunc,
                                ValueMapTypeRemapper *TypeMapper = nullptr,
                                ValueMaterializer *Materializer = nullptr);
 
+/// Clone OldFunc's body into NewFunc.
+void CloneFunctionBodyInto(Function *NewFunc, const Function *OldFunc,
----------------
felipepiovezan wrote:

Can `NewFunc` / `OldFunc` be nullptr? If not, they should be references

https://github.com/llvm/llvm-project/pull/118624
_______________________________________________
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