[llvm] [TableGen] Use std::string::find (NFC) (PR #139681)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 09:23:43 PDT 2025


================
@@ -1796,11 +1796,11 @@ const Init *TernOpInit::Fold(const Record *CurRec) const {
     if (LHSs && MHSs && RHSs) {
       std::string Val = RHSs->getValue().str();
 
-      StringRef::size_type found;
-      StringRef::size_type idx = 0;
+      std::string::size_type found;
----------------
kazutakahirata wrote:

Good points!  Fixed in the latest revision.  Thanks!

https://github.com/llvm/llvm-project/pull/139681


More information about the llvm-commits mailing list