[PATCH] D77307: [Support] Make DataExtractor string functions error-aware

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 08:39:05 PDT 2020


probinson accepted this revision.
probinson added a comment.
This revision is now accepted and ready to land.

One nit and LGTM.



================
Comment at: llvm/lib/Support/DataExtractor.cpp:159
+  if (isError(Err))
+    return Result;
 
----------------
This is the only use of Result; eliminate the var and return StringRef() here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77307/new/

https://reviews.llvm.org/D77307





More information about the llvm-commits mailing list