[all-commits] [llvm/llvm-project] 8d72f4: [Clang] Do not crash when an invalid offload archi...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Oct 12 12:08:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d72f445f79992fd860a73ca4ebd78c1bcc6324b
https://github.com/llvm/llvm-project/commit/8d72f445f79992fd860a73ca4ebd78c1bcc6324b
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-10-12 (Wed, 12 Oct 2022)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/test/Driver/cuda-phases.cu
Log Message:
-----------
[Clang] Do not crash when an invalid offload architecture is set
If an invalid architecture is set we currently return an empty string.
This will cause the offloading toolchain to continue to be built and
hit an assertion elsewhere due to the invalid architecture. This patch
fixes that so we now correctly exit.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D135791
More information about the All-commits
mailing list