HomeFreeBSD

Tentatively merge llvm fix for buildworld WITH_ASAN

Description

Tentatively merge llvm fix for buildworld WITH_ASAN

Building world using WITH_ASAN results in an assertion when compiling
certain source files referencing ifuncs:

Assertion failed: (isa<Function>(Callee) || isa<GlobalAlias>(Callee)), function analyzeAllUses, file /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp, line 514.

This was already reported upstream a while ago, in
https://github.com/llvm/llvm-project/issues/87923, but now there is
finally a candidate fix, which seems trivial so I am importing it right
away.

Reported by: markj
PR: 280936
Pull Request: https://github.com/llvm/llvm-project/pull/113841
MFC after: 3 days

Details

Provenance
dimAuthored on Oct 28 2024, 5:33 PM
Parents
rGb8c3dd46bba0: Fix gcc unused value warnings in FreeBSD zfs_prop.c
Branches
Unknown
Tags
Unknown