llvm.org GIT mirror llvm / 16f9566
Fix miscompile. Add back the use of the ArrayRef version of the ::get method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173613 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
2 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
108108
109109 /// \brief Return a uniquified Attribute object. This takes the uniquified
110110 /// value from the Builder and wraps it in the Attribute class.
111 static Attribute get(LLVMContext &Context, AttrKind Kind);
111 static Attribute get(LLVMContext &Context, ArrayRef Kinds);
112112 static Attribute get(LLVMContext &Context, AttrBuilder &B);
113113
114114 /// \brief Return true if the attribute is present.
2929 // Attribute Implementation
3030 //===----------------------------------------------------------------------===//
3131
32 Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) {
33 AttrBuilder B(Kind);
32 Attribute Attribute::get(LLVMContext &Context, ArrayRef Kinds) {
33 AttrBuilder B;
34 for (ArrayRef::iterator I = Kinds.begin(), E = Kinds.end();
35 I != E; ++I)
36 B.addAttribute(*I);
3437 return Attribute::get(Context, B);
3538 }
3639