mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[ForceFunctionAttrs] Add const (NFC)
This commit is contained in:
parent
bce178a5ec
commit
bb51f76fb1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user