Pass IrFunction* to applyFuncDeclUDAs instead of irfunc->func (llvm::Function*) such that LDC's UDAs can set function properties that are not part of llvm::Function.

This commit is contained in:
Johan Engelen 2016-04-19 20:57:21 +02:00
parent 339d875327
commit b25b7966cc
3 changed files with 8 additions and 4 deletions

View file

@ -496,7 +496,7 @@ void DtoDeclareFunction(FuncDeclaration *fdecl) {
}
}
applyFuncDeclUDAs(fdecl, func);
applyFuncDeclUDAs(fdecl, irFunc);
// main
if (fdecl->isMain()) {