It currently receives an output parameter and returns
std::error_code. Expected<StringRef> fits for this purpose perfectly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 31269 Build 31268: arc lint + arc unit
Event Timeline
Comment Actions
Looks good, apart from one comment.
llvm/tools/llvm-readobj/COFFDumper.cpp | ||
---|---|---|
1545 | I'm not sure this is the right way to throw away an Error. Assuming for a moment that we don't want to report this error here (I'm guessing we probably should at some point), you should use something like consumeError. |
llvm/tools/llvm-readobj/COFFDumper.cpp | ||
---|---|---|
1545 | Thanks! I forgot consumeError. |
Comment Actions
LGTM. It might be worth a TODO/FIXME next to that consumeError saying we should propagate it (assuming that we should).
I'm not sure this is the right way to throw away an Error. Assuming for a moment that we don't want to report this error here (I'm guessing we probably should at some point), you should use something like consumeError.