[llvm] [MachO] Replace getStruct with getStructOrErr (PR #95810)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 01:05:08 PDT 2024
================
@@ -115,10 +101,10 @@ static const char *getPtr(const MachOObjectFile &O, size_t Offset,
return O.getData().data() + Offset + MachOFilesetEntryOffset;
}
-static MachO::nlist_base
+static llvm::Expected<llvm::MachO::nlist_base>
----------------
jh7370 wrote:
Nit: please don't prefix `Expected` with an `llvm::` namespace qualifier: you're in a file with `using namespace llvm` at the top, so it's unnecessary.
https://github.com/llvm/llvm-project/pull/95810
More information about the llvm-commits
mailing list