@@ -220,11 +220,11 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) {
220
220
Prefixes.insert (std::make_pair (PrefixKeyT (), " prefix_0" ));
221
221
unsigned CurPrefix = 0 ;
222
222
for (const Record &R : llvm::make_pointee_range (Opts)) {
223
- std::vector<StringRef> prf = R.getValueAsListOfStrings (" Prefixes" );
224
- PrefixKeyT prfkey (prf .begin (), prf .end ());
223
+ std::vector<StringRef> RPrefixes = R.getValueAsListOfStrings (" Prefixes" );
224
+ PrefixKeyT PrefixKey (RPrefixes .begin (), RPrefixes .end ());
225
225
unsigned NewPrefix = CurPrefix + 1 ;
226
- if (Prefixes. insert ( std::make_pair (prfkey, (Twine (" prefix_" ) +
227
- Twine (NewPrefix)). str () )).second )
226
+ std::string Prefix = (Twine (" prefix_" ) + Twine (NewPrefix)). str ();
227
+ if (Prefixes. insert ( std::make_pair (PrefixKey, Prefix )).second )
228
228
CurPrefix = NewPrefix;
229
229
}
230
230
@@ -299,8 +299,8 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) {
299
299
300
300
auto WriteOptRecordFields = [&](raw_ostream &OS, const Record &R) {
301
301
// The option prefix;
302
- std::vector<StringRef> prf = R.getValueAsListOfStrings (" Prefixes" );
303
- OS << Prefixes[PrefixKeyT (prf .begin (), prf .end ())] << " , " ;
302
+ std::vector<StringRef> RPrefixes = R.getValueAsListOfStrings (" Prefixes" );
303
+ OS << Prefixes[PrefixKeyT (RPrefixes .begin (), RPrefixes .end ())] << " , " ;
304
304
305
305
// The option string.
306
306
emitNameUsingSpelling (OS, R);
0 commit comments