ADT: Use LLVM_NODISCARD instead of LLVM_ATTRIBUTE_UNUSED_RESULT for ArrayRef
authorJustin Bogner <mail@justinbogner.com>
Sun, 16 Oct 2016 20:30:40 +0000 (20:30 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sun, 16 Oct 2016 20:30:40 +0000 (20:30 +0000)
commitd727738369fb154d79b60a228e3829500a53b354
tree253a77602aaf5d89fa25ecea86a58f8611f74d6d
parent14994133bb86c038114b1ef906b2841e04add92d
ADT: Use LLVM_NODISCARD instead of LLVM_ATTRIBUTE_UNUSED_RESULT for ArrayRef

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

llvm-svn: 284342
llvm/include/llvm/ADT/ArrayRef.h