[ORC] Actually propagate memory unmapping errors on Windows
authorMartin Storsjö <martin@martin.st>
Wed, 3 Aug 2022 08:04:51 +0000 (11:04 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 4 Aug 2022 08:14:52 +0000 (11:14 +0300)
commit46bc1b5689e417d870c57a8d16044a55549673fa
treecc2df679846489616c46e01e67c576972f7815d5
parent46196db4d305267a5d53ee642debaf408b0821a9
[ORC] Actually propagate memory unmapping errors on Windows

This fixes warnings like these:

    ../lib/ExecutionEngine/Orc/MemoryMapper.cpp:364:9: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
            joinErrors(std::move(Err),
            ^~~~~~~~~~ ~~~~~~~~~~~~~~~

Differential Revision: https://reviews.llvm.org/D131056
llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp