llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL] Ignore unknown users of virtual functions instead of crashing

Open Maetveis opened this issue 7 months ago • 5 comments

The SYCLVirtualFunctionsAnalysis pass was crashing (calling llvm_unreachable) when it encountered a non-constant non-global use of an indirectly callable function. Instead of that just ignore any user we don't know how to handle and log a debug message. The LLVM User hierarchy is mostly closed, so in practice the ignored users are mostly going to be instructions.

Maetveis avatar Mar 11 '25 15:03 Maetveis