Browse Source

Fix codegen emitting wrong instructions for double vector types

MineGame159 2 years ago
parent
commit
3644486b69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IDEHelper/Compiler/BfIRCodeGen.cpp

+ 1 - 1
IDEHelper/Compiler/BfIRCodeGen.cpp

@@ -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)