[PATCH] D105014: added some example code for llvm::Expected<T>

Christian Kühnel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 30 02:38:08 PDT 2021


kuhnel added inline comments.


================
Comment at: llvm/include/llvm/Support/Error.h:464
+///        errs() << "Problem with division "
+///               << toString(E) << "\n";
+///     }
----------------
sammccall wrote:
> this won't compile, you need std::move(E)
sorry, I was too lazy to run this through the compiler. Now it compiles and runs...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105014



More information about the cfe-commits mailing list