[llvm] [MemProf] Don't mutate the function type when calling clone (PR #147829)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 11:01:48 PDT 2025


================
@@ -0,0 +1,63 @@
+;; Test to ensure the call updated to call a clone does not mutate the callee
+;; function type. In rare cases we may end up with a callee declaration that
+;; does not match the call type, because it was imported from a different
+;; module with an incomplete return type (in which case clang gives it a void
+;; return type).
+
+; RUN: rm -rf %t && split-file %s %t && cd %t
----------------
teresajohnson wrote:

This is trying to remove an existing directory created by split-file during a prior invocation of the test, hence the `-r`. This specific line shows up in many tests that invoke split-file.

https://github.com/llvm/llvm-project/pull/147829


More information about the llvm-commits mailing list