File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
clang/tools/clang-linker-wrapper Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -942,7 +942,7 @@ Expected<SmallVector<StringRef>> linkAndWrapDeviceFiles(
942942 return OutputOrErr.takeError ();
943943
944944 // Store the offloading image for each linked output file.
945- for (OffloadKind Kind = OFK_FIRST ; Kind != OFK_LAST;
945+ for (OffloadKind Kind = OFK_OpenMP ; Kind != OFK_LAST;
946946 Kind = static_cast <OffloadKind>((uint16_t )(Kind) << 1 )) {
947947 if ((ActiveOffloadKindMask & Kind) == 0 )
948948 continue ;
Original file line number Diff line number Diff line change @@ -32,12 +32,11 @@ namespace object {
3232// / The producer of the associated offloading image.
3333enum OffloadKind : uint16_t {
3434 OFK_None = 0 ,
35- OFK_OpenMP = (1 << 1 ),
36- OFK_FIRST = OFK_OpenMP,
37- OFK_Cuda = (1 << 2 ),
38- OFK_HIP = (1 << 3 ),
39- OFK_SYCL = (1 << 4 ),
40- OFK_LAST = (1 << 5 ),
35+ OFK_OpenMP = (1 << 0 ),
36+ OFK_Cuda = (1 << 1 ),
37+ OFK_HIP = (1 << 2 ),
38+ OFK_SYCL = (1 << 3 ),
39+ OFK_LAST = (1 << 4 ),
4140};
4241
4342// / The type of contents the offloading image contains.
You can’t perform that action at this time.
0 commit comments