[llvm] 46196db - [ORC] Fix a warning about an unused variable on Windows. NFC.
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 01:15:49 PDT 2022
Author: Martin Storsjö
Date: 2022-08-04T11:14:52+03:00
New Revision: 46196db4d305267a5d53ee642debaf408b0821a9
URL: https://github.com/llvm/llvm-project/commit/46196db4d305267a5d53ee642debaf408b0821a9
DIFF: https://github.com/llvm/llvm-project/commit/46196db4d305267a5d53ee642debaf408b0821a9.diff
LOG: [ORC] Fix a warning about an unused variable on Windows. NFC.
Differential Revision: https://reviews.llvm.org/D131055
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
index 17498a6c09f73..caa191cea899d 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
@@ -241,6 +241,7 @@ Error ExecutorSharedMemoryMapperService::release(
errno, std::generic_category())));
#elif defined(_WIN32)
+ (void)Size;
if (!UnmapViewOfFile(Base.toPtr<void *>()))
Err = joinErrors(std::move(Err),
More information about the llvm-commits
mailing list