[PATCH] D111541: [Object] Deduplicate the three createError functions

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 11 06:41:14 PDT 2021


jhenderson added inline comments.


================
Comment at: llvm/include/llvm/Object/Error.h:85
 
+static inline Error createError(const Twine &Err) {
+  return make_error<StringError>(Err, object_error::parse_failed);
----------------
I'm not sure you want the `static` keyword here? The `inline` keyword is enough to prevent ODR violations.


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

https://reviews.llvm.org/D111541



More information about the llvm-commits mailing list