File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -511,14 +511,14 @@ DependentScopeDeclRefExpr::CreateEmpty(const ASTContext &Context,
511
511
}
512
512
513
513
SourceLocation CXXConstructExpr::getBeginLoc () const {
514
- if (isa <CXXTemporaryObjectExpr>(this ))
515
- return cast<CXXTemporaryObjectExpr>( this ) ->getBeginLoc ();
514
+ if (const auto *TOE = dyn_cast <CXXTemporaryObjectExpr>(this ))
515
+ return TOE ->getBeginLoc ();
516
516
return getLocation ();
517
517
}
518
518
519
519
SourceLocation CXXConstructExpr::getEndLoc () const {
520
- if (isa <CXXTemporaryObjectExpr>(this ))
521
- return cast<CXXTemporaryObjectExpr>( this ) ->getEndLoc ();
520
+ if (const auto *TOE = dyn_cast <CXXTemporaryObjectExpr>(this ))
521
+ return TOE ->getEndLoc ();
522
522
523
523
if (ParenOrBraceRange.isValid ())
524
524
return ParenOrBraceRange.getEnd ();
You can’t perform that action at this time.
0 commit comments