Skip to content

Commit 6f750d1

Browse files
committed
commnets
1 parent f16aa0a commit 6f750d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,8 +2430,8 @@ static ExprResult BuiltinMaskedScatter(Sema &S, CallExpr *TheCall) {
24302430
QualType PtrTy = PtrArg->getType();
24312431
QualType PointeeTy = PtrTy->getPointeeType();
24322432

2433-
const VectorType *MaskVecTy = MaskTy->getAs<VectorType>();
2434-
const VectorType *ValVecTy = ValTy->getAs<VectorType>();
2433+
const VectorType *MaskVecTy = MaskTy->castAs<VectorType>();
2434+
const VectorType *ValVecTy = ValTy->castAs<VectorType>();
24352435
if (MaskVecTy->getNumElements() != IdxVecTy->getNumElements())
24362436
return ExprError(
24372437
S.Diag(TheCall->getBeginLoc(), diag::err_vec_masked_load_store_size)
@@ -2450,7 +2450,7 @@ static ExprResult BuiltinMaskedScatter(Sema &S, CallExpr *TheCall) {
24502450
if (!S.Context.hasSameType(ValTy, ArgTy))
24512451
return ExprError(S.Diag(TheCall->getBeginLoc(),
24522452
diag::err_vec_builtin_incompatible_vector)
2453-
<< TheCall->getDirectCallee() << /*isMorethantwoArgs*/ 2
2453+
<< TheCall->getDirectCallee() << /*isMoreThanTwoArgs*/ 2
24542454
<< SourceRange(TheCall->getArg(1)->getBeginLoc(),
24552455
TheCall->getArg(1)->getEndLoc()));
24562456

0 commit comments

Comments
 (0)