Files
Peter Rong 1aebdd72d2 [SwiftMergeFunctions] Skip functions with musttail calls
SwiftMergeFunctions replaces merged function bodies with tail-call
trampolines that have different parameter counts than the original.
This breaks the musttail contract which requires the caller and callee
to have exactly matching parameter counts and types.

The fix excludes any function containing a musttail call from merge
candidates. Without this, structurally similar functions with musttail
calls (e.g. ObjC direct method precondition thunks) get merged into
trampolines that produce invalid LLVM IR ("input module is broken").
2026-04-17 14:09:54 -07:00
..