mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Added a 'cast' intrinsic
This commit is contained in:
parent
660e7d8125
commit
1f20d76f94
14 changed files with 75 additions and 22 deletions
|
@ -6096,7 +6096,7 @@ BfIRFunction BfModule::GetIntrinsic(BfMethodInstance* methodInstance, bool repor
|
|||
SizedArray<BfIRType, 2> paramTypes;
|
||||
for (auto& param : methodInstance->mParams)
|
||||
paramTypes.push_back(mBfIRBuilder->MapType(param.mResolvedType));
|
||||
return mBfIRBuilder->GetIntrinsic(intrinId, paramTypes);
|
||||
return mBfIRBuilder->GetIntrinsic(intrinId, mBfIRBuilder->MapType(methodInstance->mReturnType), paramTypes);
|
||||
}
|
||||
else if (reportFailure)
|
||||
error = StrFormat("Unable to find intrinsic '%s'", entry.mString.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue