Skip to content

Commit e8f312d

Browse files
[X86] Use a range-based for loop (NFC) (#103519)
1 parent b73771c commit e8f312d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86Subtarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ void X86Subtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
283283
SmallVector<StringRef, 9> FeaturesIn64BitOnly = {
284284
"egpr", "push2pop2", "ppx", "ndd", "ccmp", "nf", "cf", "zu", "uintr"};
285285
if (FullFS.find("-64bit-mode") != std::string::npos)
286-
llvm::for_each(FeaturesIn64BitOnly,
287-
[&](StringRef F) { FullFS += ",-" + F.str(); });
286+
for (StringRef F : FeaturesIn64BitOnly)
287+
FullFS += ",-" + F.str();
288288

289289
// Parse features string and set the CPU.
290290
ParseSubtargetFeatures(CPU, TuneCPU, FullFS);

0 commit comments

Comments
 (0)