File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1796,14 +1796,13 @@ const Init *TernOpInit::Fold(const Record *CurRec) const {
17961796 if (LHSs && MHSs && RHSs) {
17971797 std::string Val = RHSs->getValue ().str ();
17981798
1799- std::string::size_type found;
1800- std::string::size_type idx = 0 ;
1799+ std::string::size_type Idx = 0 ;
18011800 while (true ) {
1802- found = Val.find (LHSs->getValue (), idx );
1803- if (found == std::string::npos)
1801+ std::string::size_type Found = Val.find (LHSs->getValue (), Idx );
1802+ if (Found == std::string::npos)
18041803 break ;
1805- Val.replace (found , LHSs->getValue ().size (), MHSs->getValue ().str ());
1806- idx = found + MHSs->getValue ().size ();
1804+ Val.replace (Found , LHSs->getValue ().size (), MHSs->getValue ().str ());
1805+ Idx = Found + MHSs->getValue ().size ();
18071806 }
18081807
18091808 return StringInit::get (RK, Val);
You can’t perform that action at this time.
0 commit comments