Replace strlen with StringRef::size
authorIlyas Mustafazade <il.mystafa@gmail.com>
Mon, 20 Mar 2023 21:00:46 +0000 (14:00 -0700)
committerVitaly Buka <vitalybuka@google.com>
Mon, 20 Mar 2023 21:18:51 +0000 (14:18 -0700)
commit38fc680c2dc31ae7c397faa919e1881fb9e8f82a
treec93980f793574b961c8956ec4ceaac5e4eed846e
parentd3d6a5ff184d4d9c7ac7bcd281281a3b53ed058b
Replace strlen with StringRef::size

Replace multiple strlen calls with a StringRef constructor and a
StringRef::size call.

Differential Revision: https://reviews.llvm.org/D146394
llvm/lib/Option/Option.cpp