mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
To verify if a function may read from an indirect argument, don't use AliasAnalysis. Instead use the CalleeCache to get the list of callees of an apply instruction. Then use a simple call-back into the swift Function to check if a callee has any relevant memory effect set. This avoids a dependency from SIL to the Optimizer. It fixes a linker error when building some unit tests in debug.
51 KiB
51 KiB