From: Zachary Turner Date: Mon, 21 Nov 2016 23:02:28 +0000 (+0000) Subject: Remove LLVM_NODISCARD from two more StringRef members. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf423ecebd62df2c5b9a3ec6a03457eef0c2b4ec;p=llvm Remove LLVM_NODISCARD from two more StringRef members. This should be everything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287594 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index cb2b310d6e4..0755d94f639 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -667,7 +667,6 @@ namespace llvm { /// Returns true if this StringRef has the given prefix and removes that /// prefix. - LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool consume_front(StringRef Prefix) { if (!startswith(Prefix)) @@ -679,7 +678,6 @@ namespace llvm { /// Returns true if this StringRef has the given suffix and removes that /// suffix. - LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool consume_back(StringRef Suffix) { if (!endswith(Suffix))