mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Reflection fixes on Win32
This commit is contained in:
parent
6e6487d951
commit
4ac56a2432
6 changed files with 102 additions and 83 deletions
|
@ -1296,7 +1296,11 @@ void BfIRCodeGen::HandleNextCmd()
|
|||
llvm::SmallVector<llvm::Constant*, 8> copyValues;
|
||||
FixValues((llvm::StructType*)type, values);
|
||||
for (auto val : values)
|
||||
copyValues.push_back(llvm::dyn_cast<llvm::Constant>(val));
|
||||
{
|
||||
auto constValue = llvm::dyn_cast<llvm::Constant>(val);
|
||||
BF_ASSERT(constValue != NULL);
|
||||
copyValues.push_back(constValue);
|
||||
}
|
||||
SetResult(curId, llvm::ConstantStruct::get((llvm::StructType*)type, copyValues));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue