[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 12 02:05:09 PST 2024
================
@@ -0,0 +1,11 @@
+// REQUIRES: asserts
+
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 -disable-llvm-passes -fopenmp-targets=amdgcn-amd-amdhsa -x c++ -emit-llvm-bc %s -o %t-x86-host.bc
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -target-cpu gfx906 -fopenmp -nogpulib -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-x86-host.bc -x c++ %s
+
+// Don't crash with assertions build.
----------------
arsenm wrote:
Needs output checks
https://github.com/llvm/llvm-project/pull/119246
More information about the cfe-commits
mailing list