1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

var-return support for const eval methods

This commit is contained in:
Brian Fiete 2020-12-30 13:24:13 -08:00
parent 585e2575e8
commit 706fe9e04b
15 changed files with 292 additions and 60 deletions

View file

@ -3522,7 +3522,11 @@ void BfIRCodeGen::HandleNextCmd()
NULL, llvm::GlobalValue::NotThreadLocal);
}
else
func->addAttribute(argIdx, LLVMMapAttribute(attribute));
{
auto attr = LLVMMapAttribute(attribute);
if (attr != llvm::Attribute::None)
func->addAttribute(argIdx, attr);
}
}
break;
case BfIRCmd_Func_AddAttribute1: