git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166035
91177308-0d34-0410-b5e6-
96231b3b80d8
static AttributeWithIndex get(LLVMContext &C, unsigned Idx,
ArrayRef<Attributes::AttrVal> Attrs) {
- AttrBuilder B;
-
- for (ArrayRef<Attributes::AttrVal>::iterator I = Attrs.begin(),
- E = Attrs.end(); I != E; ++I)
- B.addAttribute(*I);
-
AttributeWithIndex P;
P.Index = Idx;
- P.Attrs = Attributes::get(C, B);
+ P.Attrs = Attributes::get(C, Attrs);
return P;
}
static AttributeWithIndex get(unsigned Idx, Attributes Attrs) {