Skip to content

Commit f88b75e

Browse files
committed
cleanup to remove warnings
1 parent 47dbdbd commit f88b75e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/include/llvm/Object/OffloadBundle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ LLVM_ABI Error extractOffloadBundleFatBinary(
188188

189189
/// Extract code object memory from the given \p Source object file at \p Offset
190190
/// and of \p Size, and copy into \p OutputFileName.
191-
LLVM_ABI Error extractCodeObject(const ObjectFile &Source, int64_t Offset,
192-
int64_t Size, StringRef OutputFileName);
191+
LLVM_ABI Error extractCodeObject(const ObjectFile &Source, size_t Offset,
192+
size_t Size, StringRef OutputFileName);
193193

194194
/// Extracts an Offload Bundle Entry given by URI
195195
LLVM_ABI Error extractOffloadBundleByURI(StringRef URIstr);

llvm/lib/Object/OffloadBundle.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ Error object::extractOffloadBundleFatBinary(
199199
return Error::success();
200200
}
201201

202-
Error object::extractCodeObject(const ObjectFile &Source, int64_t Offset,
203-
int64_t Size, StringRef OutputFileName) {
202+
Error object::extractCodeObject(const ObjectFile &Source, size_t Offset,
203+
size_t Size, StringRef OutputFileName) {
204204
Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
205205
FileOutputBuffer::create(OutputFileName, Size);
206206

@@ -254,7 +254,7 @@ Error object::extractOffloadBundleByURI(StringRef URIstr) {
254254
auto Obj = ObjOrErr->getBinary();
255255
if (Error Err =
256256
object::extractCodeObject(*Obj, Uri.Offset, Uri.Size, OutputFile))
257-
return std::move(Err);
257+
return Err;
258258

259259
return Error::success();
260260
}

0 commit comments

Comments
 (0)