[all-commits] [llvm/llvm-project] 853c8f: [ORC] Fix a warning about an unused variable on Wi...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Aug 8 12:20:54 PDT 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 853c8f927a2445169a1e1944ced94577f0a928ed
      https://github.com/llvm/llvm-project/commit/853c8f927a2445169a1e1944ced94577f0a928ed
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp

  Log Message:
  -----------
  [ORC] Fix a warning about an unused variable on Windows. NFC.

Differential Revision: https://reviews.llvm.org/D131055

(cherry picked from commit 46196db4d305267a5d53ee642debaf408b0821a9)


  Commit: bf956104334ac393e92d0655066ea971616a22d8
      https://github.com/llvm/llvm-project/commit/bf956104334ac393e92d0655066ea971616a22d8
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp

  Log Message:
  -----------
  [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

(cherry picked from commit 46bc1b5689e417d870c57a8d16044a55549673fa)


Compare: https://github.com/llvm/llvm-project/compare/9d1f36d6b743...bf956104334a


More information about the All-commits mailing list