Skip to content

Commit a6d4b7e

Browse files
author
Boris Kosmynin
committed
claim X args
1 parent e9a17ff commit a6d4b7e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3884,7 +3884,7 @@ CGOpenMPRuntime::createOffloadingBinaryDescriptorRegistration() {
38843884

38853885
// We should be creating an offloading descriptor only if there are devices
38863886
// specified.
3887-
assert(!Devices.empty() && "No OpenMP offloading devices??");
3887+
//assert(!Devices.empty() && "No OpenMP offloading devices??");
38883888

38893889
// Create the external variables that will point to the begin and end of the
38903890
// host entries section. These will be defined by the linker.

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,12 @@ void tools::claimNoWarnArgs(const ArgList &Args) {
838838
Args.ClaimAllArgs(options::OPT_flto_EQ);
839839
Args.ClaimAllArgs(options::OPT_flto);
840840
Args.ClaimAllArgs(options::OPT_fno_lto);
841+
842+
for(auto A : Args) {
843+
if(A->getOption().getName() == "X" && std::string(A->getValue(0)).compare(0,13,"openmp-target") == 0){
844+
A->claim();
845+
}
846+
}
841847
}
842848

843849
Arg *tools::getLastProfileUseArg(const ArgList &Args) {

clang/lib/Driver/ToolChains/NECAuroraOffload.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ void necauroratools::Common::ConstructJob(Compilation &C, const JobAction &JA,
6969
continue;
7070
}
7171

72-
if (A->getOption().getName() == "X" && std::string(A->getValue(0)).compare(0,13,"openmp-target") == 0) {
72+
if (A->getOption().getName() == "X") {
73+
A->claim();
7374
continue;
7475
}
7576

0 commit comments

Comments
 (0)