Skip to content

Commit 2bb9077

Browse files
committed
Change disabling features to use .insert rather than a for loop
1 parent ab34913 commit 2bb9077

File tree

1 file changed

+2
-2
lines changed
  • clang/lib/Driver/ToolChains/Arch

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/Arch/ARM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,8 @@ llvm::ARM::FPUKind arm::getARMTargetFeatures(const Driver &D,
794794
if (ItSimd != Features.rend())
795795
HasSimd = ItSimd->starts_with("+");
796796
if (!HasSimd && FPUSupportsNeon)
797-
for (auto &F : {"-sha2", "-aes", "-crypto", "-dotprod", "-bf16", "-imm8"})
798-
Features.push_back(F);
797+
Features.insert(Features.end(),
798+
{"-sha2", "-aes", "-crypto", "-dotprod", "-bf16", "-imm8"});
799799

800800
// For Arch >= ARMv8.0 && A or R profile: crypto = sha2 + aes
801801
// Rather than replace within the feature vector, determine whether each

0 commit comments

Comments
 (0)