Skip to content

Commit c0bc689

Browse files
committed
Address review comments
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent ec072a0 commit c0bc689

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

llvm/include/llvm/Object/OffloadBinary.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ namespace object {
3232
/// The producer of the associated offloading image.
3333
enum 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.

0 commit comments

Comments
 (0)