[ORC] Fix a warning about an unused variable on Windows. NFC.
authorMartin Storsjö <martin@martin.st>
Wed, 3 Aug 2022 08:04:27 +0000 (11:04 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 4 Aug 2022 08:14:52 +0000 (11:14 +0300)
Differential Revision: https://reviews.llvm.org/D131055

llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp

index 17498a6..caa191c 100644 (file)
@@ -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),