HomePhabricator

[OPENMP]Fix PR48885: Crash in passing firstprivate args to tasks on Apple M1.

Authored by ABataev on Mar 29 2021, 10:26 AM.

Description

[OPENMP]Fix PR48885: Crash in passing firstprivate args to tasks on Apple M1.

Need to bitcast the function pointer passed as a parameter to the real
type to avoid possible problem with calling conventions.

Differential Revision: https://reviews.llvm.org/D99521