mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 06:43:14 +01:00
Attribute holds no longer multiple values in LLVM 3.3.
The solution is to replace Attribute with AttrBuilder in IrFuncTyArg. Then the argument attributes can be easily manipulated and transformed into the final AttributeSet.
This commit is contained in:
@@ -203,9 +203,9 @@ static LLValue *fixArgument(DValue *argval, TypeFunction* tf, LLType *callableAr
|
||||
|
||||
#if LDC_LLVM_VER >= 303
|
||||
static inline void addToAttributes(llvm::AttributeSet &Attrs,
|
||||
unsigned Idx, llvm::Attribute Attr)
|
||||
unsigned Idx, llvm::AttrBuilder B)
|
||||
{
|
||||
llvm::AttrBuilder Builder(Attr);
|
||||
llvm::AttrBuilder Builder(B);
|
||||
Attrs = Attrs.addAttributes(gIR->context(), Idx,
|
||||
llvm::AttributeSet::get(gIR->context(), Idx, Builder));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user