Unverified Commit 6faae130 authored by Louis Dionne's avatar Louis Dionne Committed by GitHub
Browse files

[libc++] Simplify the definition of string::operator== (#95000)

Instead of hardcoding a loop for small strings, always call
char_traits::compare which ends up desugaring to __builtin_memcmp.

Note that the original code dates back 11 years, when we didn't lower to
intrinsics in `char_traits::compare`.

Fixes #94222
parent f638f7b6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment