Skip to content

Commit 2993d17

Browse files
committed
!fixup apply suggestions, thanks!
1 parent f44451d commit 2993d17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/VectorUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ static void getMetadataToPropagate(
990990
Instruction *Inst,
991991
SmallVectorImpl<std::pair<unsigned, MDNode *>> &Metadata) {
992992
Inst->getAllMetadataOtherThanDebugLoc(Metadata);
993-
unsigned SupportedIDs[] = {
993+
static const unsigned SupportedIDs[] = {
994994
LLVMContext::MD_tbaa, LLVMContext::MD_alias_scope,
995995
LLVMContext::MD_noalias, LLVMContext::MD_fpmath,
996996
LLVMContext::MD_nontemporal, LLVMContext::MD_invariant_load,
@@ -999,7 +999,7 @@ static void getMetadataToPropagate(
999999
// Remove any unsupported metadata kinds from Metadata.
10001000
for (unsigned Idx = 0; Idx != Metadata.size();) {
10011001
if (is_contained(SupportedIDs, Metadata[Idx].first)) {
1002-
Idx++;
1002+
++Idx;
10031003
} else {
10041004
// Swap element to end and remove it.
10051005
std::swap(Metadata[Idx], Metadata.back());

0 commit comments

Comments
 (0)