ADT: Use LLVM_NODISCARD instead of LLVM_ATTRIBUTE_UNUSED_RESULT for APInt
authorJustin Bogner <mail@justinbogner.com>
Sat, 15 Oct 2016 00:22:06 +0000 (00:22 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 15 Oct 2016 00:22:06 +0000 (00:22 +0000)
commit44264e1353916cbb5d447082c9e7a8ba1c56b9f3
tree0e14d07eab7b2d8bf3da93f0063faad4da9285af
parent4b4e705b6731bce365969611563971694c86726b
ADT: Use LLVM_NODISCARD instead of LLVM_ATTRIBUTE_UNUSED_RESULT for APInt

Instead of annotating (most of) the APInt API, we can just annotate
the type directly. This is less code and it will warn in more cases.

llvm-svn: 284297
llvm/include/llvm/ADT/APInt.h
llvm/include/llvm/ADT/APSInt.h