[OpenMP] Fix logic error when building offloading applications
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 6 Sep 2022 18:56:24 +0000 (13:56 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 6 Sep 2022 18:56:24 +0000 (13:56 -0500)
commit3a623999f3ff96843f97ee300e0c94b8cbc88a9f
tree9f44abe50dd1c4f6fef1b00d15624aadefd310ad
parent57ef29f2835eb594bc2ad4793df05188be4c2ef6
[OpenMP] Fix logic error when building offloading applications

Summary:
A previous patch removed support for the `-fopenmp-new-driver` and
accidentally used the `isHostOffloading` flag instead of
`isDeviceOffloading` which lead to some build errors when compiling for
the offloading device. This patch addresses that.
clang/lib/Driver/ToolChains/Clang.cpp