Commit Graph

2 Commits

Author SHA1 Message Date
Anthony Latsis
d57f78eeb3 [test] IRGen: Adjust FileCheck pattern for nocapture refactoring in upstream LLVM
The current pattern does not match a ')' inside the argument list. This
will no longer work because `nocapture` became `captures(none) in
29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project).

Use a wildcard regex instead. Doing so does not compromise the test
because the `unnamed_addr` attribute we are guarding against can appear
only after the argument list.

This is intended to reduce future conflicts with rebranch.
2025-05-04 03:29:19 +01:00
Erik Eckstein
f7d610d2e9 IRGen: don't create ObjC methods with the unnamed_addr attribute
In some places, Foundation is comparing ObjC method pointers.
Therefore LLVM's function merging pass must not create aliases for identica; functions, but instead create thunks.
This can be ensured by not creating ObjC methods with the unnamed_addr attribute.

rdar://problem/58483698
2020-01-14 20:45:00 +01:00