mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-02 09:58:06 +00:00

This is a bit too aggressive of a warning, as it is forces ANY function which returns a StringRef to have its return value checked. While useful on classes like llvm::Error which are designed to require checking, this is not the case for StringRef, and it is perfectly reasonable to have a function return a StringRef for which the return value is not checked. Move LLVM_NODISCARD to each of the individual member functions where it makes sense instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287586 91177308-0d34-0410-b5e6-96231b3b80d8