Skip to content

Commit

Permalink
Merge pull request #308 from Xilinx/bump_to_de483ad5
Browse files Browse the repository at this point in the history
[AutoBump] Merge with fixes of de483ad (May 16) (49)
  • Loading branch information
mgehre-amd authored Sep 4, 2024
2 parents b8d108f + c061f27 commit 88c094e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/include/llvm/ADT/StringRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ namespace llvm {

/// equals - Check for string equality, this is more efficient than
/// compare() when the relative ordering of inequal strings isn't needed.
[[nodiscard]] bool equals(StringRef RHS) const {
[[nodiscard]] LLVM_DEPRECATED("Use == instead",
"==") bool equals(StringRef RHS) const {
return (Length == RHS.Length &&
compareMemory(Data, RHS.Data, RHS.Length) == 0);
}
Expand Down

0 comments on commit 88c094e

Please sign in to comment.