Skip to content

[OSX][TargetLibraryInfo] strrchr is replaced to non-existed memrchr #62254

@kpdev

Description

@kpdev

On Mac OSX (macOS version 12.4, sdk version 12.1) llvm can replace call to strrchr() with call to memrchr() when string length is known at compile time. This results in link error, because memrchr is not present in libSystem. It is needed to disable this optimization in TargetLibraryInfo for affected OSX versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm:analysisIncludes value tracking, cost tables and constant foldingplatform:macos

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions