From cf423ecebd62df2c5b9a3ec6a03457eef0c2b4ec Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 21 Nov 2016 23:02:28 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/StringRef.h | 2 -- 1 file changed, 2 deletions(-) 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)) -- 2.50.1