[PATCH] D28607: [ELF] avoid 'invalid-noreturn' error.
Eric Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 05:18:38 PST 2017
ioeric created this revision.
ioeric added a reviewer: grimar.
ioeric added a subscriber: llvm-commits.
elf::fatal is declared "noreturn".
https://reviews.llvm.org/D28607
Files:
ELF/Error.cpp
Index: ELF/Error.cpp
===================================================================
--- ELF/Error.cpp
+++ ELF/Error.cpp
@@ -104,9 +104,7 @@
}
void elf::fatal(Error &E, const Twine &Prefix) {
- handleAllErrors(std::move(E), [&](llvm::ErrorInfoBase &EI) {
- fatal(Prefix + ": " + EI.message());
- });
+ fatal(Prefix + ": " + llvm::toString(std::move(E)));
}
} // namespace lld
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28607.84113.patch
Type: text/x-patch
Size: 394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170112/ec1af92b/attachment.bin>
More information about the llvm-commits
mailing list