mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Don't use the new syntax just yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -522,7 +522,7 @@ AttrListPtr AttrListPtr::addAttr(LLVMContext &C, unsigned Idx,
 | 
				
			|||||||
    // If there are attributes already at this index, merge them in.
 | 
					    // If there are attributes already at this index, merge them in.
 | 
				
			||||||
    if (i != e && OldAttrList[i].Index == Idx) {
 | 
					    if (i != e && OldAttrList[i].Index == Idx) {
 | 
				
			||||||
      Attrs =
 | 
					      Attrs =
 | 
				
			||||||
        Attributes::get(C, Attributes::Builder(Attrs).
 | 
					        Attributes::get(Attributes::Builder(Attrs).
 | 
				
			||||||
                        addAttributes(OldAttrList[i].Attrs));
 | 
					                        addAttributes(OldAttrList[i].Attrs));
 | 
				
			||||||
      ++i;
 | 
					      ++i;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -563,7 +563,7 @@ AttrListPtr AttrListPtr::removeAttr(LLVMContext &C, unsigned Idx,
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  // If there are attributes already at this index, merge them in.
 | 
					  // If there are attributes already at this index, merge them in.
 | 
				
			||||||
  assert(OldAttrList[i].Index == Idx && "Attribute isn't set?");
 | 
					  assert(OldAttrList[i].Index == Idx && "Attribute isn't set?");
 | 
				
			||||||
  Attrs = Attributes::get(C, Attributes::Builder(OldAttrList[i].Attrs).
 | 
					  Attrs = Attributes::get(Attributes::Builder(OldAttrList[i].Attrs).
 | 
				
			||||||
                          removeAttributes(Attrs));
 | 
					                          removeAttributes(Attrs));
 | 
				
			||||||
  ++i;
 | 
					  ++i;
 | 
				
			||||||
  if (Attrs)  // If any attributes left for this parameter, add them.
 | 
					  if (Attrs)  // If any attributes left for this parameter, add them.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user