[all-commits] [llvm/llvm-project] 045665: [OpenMP] Fix embedding offload code when there is ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue May 10 10:34:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 045665423e6e893ee168368dab10469c8d3168c5
      https://github.com/llvm/llvm-project/commit/045665423e6e893ee168368dab10469c8d3168c5
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-05-10 (Tue, 10 May 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp

  Log Message:
  -----------
  [OpenMP] Fix embedding offload code when there is no offloading toolchain

Summary:
We use the `--offload-new-driver` option to enable offload code
embedding. The check for when to do this was flawed and was enabling it
too early in the case of OpenMP, causing a segfault when dereferencing
the offloading toolchain.




More information about the All-commits mailing list