[PATCH] D149602: [SystemZ][z/OS] GOFFObjectFile fix for windows build

Yusra Syeda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 11:27:14 PDT 2023


yusra.syeda created this revision.
yusra.syeda added reviewers: Kai, Everybody0523, NathanielMcVicar, chapuni, uweigand.
Herald added a subscriber: hiraditya.
Herald added a project: All.
yusra.syeda requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch ass the return of an error code at the end of the getSymbolType function to fix the build error on windows.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149602

Files:
  llvm/lib/Object/GOFFObjectFile.cpp


Index: llvm/lib/Object/GOFFObjectFile.cpp
===================================================================
--- llvm/lib/Object/GOFFObjectFile.cpp
+++ llvm/lib/Object/GOFFObjectFile.cpp
@@ -327,6 +327,8 @@
       return SymbolRef::ST_Unknown;
     }
   }
+  return createStringError(llvm::errc::invalid_argument,
+                           "Invalid argument provided");
 }
 
 Expected<section_iterator>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149602.518499.patch
Type: text/x-patch
Size: 406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230501/7fa8af15/attachment.bin>


More information about the llvm-commits mailing list