diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -4855,8 +4855,8 @@ "masked_load: return must match pointer type", Call); Assert(PassThru->getType() == DataTy, "masked_load: pass through and data type must match", Call); - Assert(cast(Mask->getType())->getNumElements() == - cast(DataTy)->getNumElements(), + Assert(cast(Mask->getType())->getElementCount() == + cast(DataTy)->getElementCount(), "masked_load: vector mask must be same length as data", Call); break; } @@ -4874,8 +4874,8 @@ Type *DataTy = cast(Ptr->getType())->getElementType(); Assert(DataTy == Val->getType(), "masked_store: storee must match pointer type", Call); - Assert(cast(Mask->getType())->getNumElements() == - cast(DataTy)->getNumElements(), + Assert(cast(Mask->getType())->getElementCount() == + cast(DataTy)->getElementCount(), "masked_store: vector mask must be same length as data", Call); break; }