]> granicus.if.org Git - llvm/commitdiff
Remove LLVM_NODISCARD from two more StringRef members.
authorZachary Turner <zturner@google.com>
Mon, 21 Nov 2016 23:02:28 +0000 (23:02 +0000)
committerZachary Turner <zturner@google.com>
Mon, 21 Nov 2016 23:02:28 +0000 (23:02 +0000)
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

index cb2b310d6e4b586e2d1efdb2c5beb65db6427a05..0755d94f639a5dcec9a45e76b8b6dc2476f54981 100644 (file)
@@ -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))