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(
942
942
return OutputOrErr.takeError ();
943
943
944
944
// 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;
946
946
Kind = static_cast <OffloadKind>((uint16_t )(Kind) << 1 )) {
947
947
if ((ActiveOffloadKindMask & Kind) == 0 )
948
948
continue ;
Original file line number Diff line number Diff line change @@ -32,12 +32,11 @@ namespace object {
32
32
// / The producer of the associated offloading image.
33
33
enum OffloadKind : uint16_t {
34
34
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 ),
41
40
};
42
41
43
42
// / The type of contents the offloading image contains.
You can’t perform that action at this time.
0 commit comments