Skip to content

Commit 0d1d36b

Browse files
committed
Always use hasVectorMaskArgument
1 parent de4d7b4 commit 0d1d36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/RuntimeLibcalls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ RuntimeLibcallsInfo::getFunctionTy(LLVMContext &Ctx, const Triple &TT,
231231

232232
PointerType *PtrTy = PointerType::get(Ctx, 0);
233233
SmallVector<Type *, 4> ArgTys = {VecTy, PtrTy, PtrTy};
234-
if (IsScalable && hasVectorMaskArgument(LibcallImpl))
235-
ArgTys.push_back(ScalableVectorType::get(Type::getInt1Ty(Ctx), EC));
234+
if (hasVectorMaskArgument(LibcallImpl))
235+
ArgTys.push_back(VectorType::get(Type::getInt1Ty(Ctx), EC, IsScalable));
236236

237237
return {FunctionType::get(Type::getVoidTy(Ctx), ArgTys, false), Attrs};
238238
}

0 commit comments

Comments
 (0)