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,
3572
3572
Designators.push_back (ASTDesignator::CreateFieldDesignator (
3573
3573
D.getFieldDecl (), D.getDotLoc (), D.getFieldLoc ()));
3574
3574
} else if (D.isArrayDesignator ()) {
3575
- Expr *Index = static_cast <Expr *>( D.getArrayIndex () );
3575
+ Expr *Index = D.getArrayIndex ();
3576
3576
llvm::APSInt IndexValue;
3577
3577
if (!Index->isTypeDependent () && !Index->isValueDependent ())
3578
3578
Index = CheckArrayDesignatorExpr (*this , Index, IndexValue).get ();
@@ -3584,8 +3584,8 @@ ExprResult Sema::ActOnDesignatedInitializer(Designation &Desig,
3584
3584
InitExpressions.push_back (Index);
3585
3585
}
3586
3586
} 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 ();
3589
3589
llvm::APSInt StartValue;
3590
3590
llvm::APSInt EndValue;
3591
3591
bool StartDependent = StartIndex->isTypeDependent () ||
You can’t perform that action at this time.
0 commit comments