Support: Annotate Error and Expected<> with LLVM_NODISCARD
authorJustin Bogner <mail@justinbogner.com>
Fri, 21 Oct 2016 21:01:12 +0000 (21:01 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 21 Oct 2016 21:01:12 +0000 (21:01 +0000)
commit8659d16631fdd1ff519a25d6867ddd9dbda8aea9
tree26bf928154abadfca28512e16e38b7ef58b283d0
parent3642dd3ca43cefe3d0f289858f1595fdd1aa5f0a
Support: Annotate Error and Expected<> with LLVM_NODISCARD

It's always a mistake to ignore return values with Error or Expected
types.

llvm-svn: 284884
llvm/include/llvm/Support/Error.h