Skip to content

Commit 500dbae

Browse files
committed
VectorType::get
1 parent 0d1d36b commit 500dbae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/IR/RuntimeLibcalls.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ RuntimeLibcallsInfo::getFunctionTy(LLVMContext &Ctx, const Triple &TT,
209209
LibcallImpl == RTLIB::impl__ZGVsNxvl8l8_sincospi ||
210210
LibcallImpl == RTLIB::impl_armpl_svsincospi_f32_x ||
211211
LibcallImpl == RTLIB::impl_armpl_svsincospi_f64_x;
212-
Type *VecTy =
213-
IsScalable ? static_cast<Type *>(ScalableVectorType::get(ScalarTy, EC))
214-
: static_cast<Type *>(FixedVectorType::get(ScalarTy, EC));
212+
VectorType *VecTy = VectorType::get(ScalarTy, EC, IsScalable);
215213

216214
for (Attribute::AttrKind Attr : CommonFnAttrs)
217215
FuncAttrBuilder.addAttribute(Attr);

0 commit comments

Comments
 (0)