Files
clang-p2996/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
Markus Böck 2fdf963daf [GlobalISel] Explicitly fail trying to translate gc.statepoint and related intrinsics
The provided testcase would previously fail with an assertion due to later down below trying to allocate registers for `token` return types and arguments. This is especially problematic as the process would then exit instead of falling back to using FastIsel.

This patch fixes that by simply explicitly failing translation if either of these intrinsics are encountered.

Fixes https://github.com/llvm/llvm-project/issues/57349

Differential Revision: https://reviews.llvm.org/D132974
2022-08-31 00:47:17 +02:00

133 KiB