llvm
76f1e1bd - [CUDA] Fix tests after 76c69de591b3 (#36990)

Commit
49 days ago
[CUDA] Fix tests after 76c69de591b3 (#36990) Fix call-device-fn-from-host.cu and call-host-fn-from-device.cu tests that broke after commit 76c69de591b3 which added support for skipping CUDA call checks in discarded if constexpr branches. The issue was that our CheckCall was being invoked on uninstantiated function templates during definition, before if constexpr conditions were resolved. This caused false positives because at template definition time: - The condition is dependent, so we don't know which branch is taken - The evaluation context is not marked as discarded - CheckCall would emit errors for both branches The fix skips CUDA call checking for callers in dependent contexts (uninstantiated templates), deferring the check until instantiation when if constexpr branches are properly resolved and discarded branches are skipped. Fixes: CMPLRLLVM-75431 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: iclsrc <iclsrc@intel.com>
Author
Committer
Parents
Loading