File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments