[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
+; RUN: llvm-as src.ll -o src.o
+; RUN: llvm-as src.o.thinlto.ll -o src.o.thinlto.bc
+
----------------
teresajohnson wrote:
done
https://github.com/llvm/llvm-project/pull/147829
More information about the llvm-commits
mailing list