1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fix codegen emitting wrong instructions for double vector types

This commit is contained in:
MineGame159 2023-03-30 18:59:38 +02:00
parent 7083739120
commit 3644486b69

View file

@ -3103,7 +3103,7 @@ void BfIRCodeGen::HandleNextCmd()
{
auto vecType = llvm::dyn_cast<llvm::VectorType>(val0->getType());
auto elemType = vecType->getElementType();
bool isFP = elemType->isFloatTy();
bool isFP = elemType->isFloatingPointTy();
llvm::Value* val1;
if (args.size() < 2)