[ForceFunctionAttrs] Add const (NFC)

This commit is contained in:
Kazu Hirata 2021-09-03 22:29:58 -07:00
parent bce178a5ec
commit bb51f76fb1

View File

@ -50,14 +50,14 @@ static void forceAttributes(Function &F) {
return Kind;
};
for (auto &S : ForceAttributes) {
for (const auto &S : ForceAttributes) {
auto Kind = ParseFunctionAndAttr(S);
if (Kind == Attribute::None || F.hasFnAttribute(Kind))
continue;
F.addFnAttr(Kind);
}
for (auto &S : ForceRemoveAttributes) {
for (const auto &S : ForceRemoveAttributes) {
auto Kind = ParseFunctionAndAttr(S);
if (Kind == Attribute::None || !F.hasFnAttribute(Kind))
continue;