File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3572,7 +3572,7 @@ ExprResult Sema::ActOnDesignatedInitializer(Designation &Desig,
35723572 Designators.push_back (ASTDesignator::CreateFieldDesignator (
35733573 D.getFieldDecl (), D.getDotLoc (), D.getFieldLoc ()));
35743574 } else if (D.isArrayDesignator ()) {
3575- Expr *Index = static_cast <Expr *>( D.getArrayIndex () );
3575+ Expr *Index = D.getArrayIndex ();
35763576 llvm::APSInt IndexValue;
35773577 if (!Index->isTypeDependent () && !Index->isValueDependent ())
35783578 Index = CheckArrayDesignatorExpr (*this , Index, IndexValue).get ();
@@ -3584,8 +3584,8 @@ ExprResult Sema::ActOnDesignatedInitializer(Designation &Desig,
35843584 InitExpressions.push_back (Index);
35853585 }
35863586 } else if (D.isArrayRangeDesignator ()) {
3587- Expr *StartIndex = static_cast <Expr *>( D.getArrayRangeStart () );
3588- Expr *EndIndex = static_cast <Expr *>( D.getArrayRangeEnd () );
3587+ Expr *StartIndex = D.getArrayRangeStart ();
3588+ Expr *EndIndex = D.getArrayRangeEnd ();
35893589 llvm::APSInt StartValue;
35903590 llvm::APSInt EndValue;
35913591 bool StartDependent = StartIndex->isTypeDependent () ||
You can’t perform that action at this time.
0 commit comments