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 @@ -1088,11 +1088,11 @@ bool NamedDecl::isPlaceholderVar(const LangOptions &LangOpts) const {
1088
1088
return false ;
1089
1089
if (isa<FieldDecl>(this ))
1090
1090
return true ;
1091
- if (auto *IFD = dyn_cast<IndirectFieldDecl>(this )) {
1091
+ if (const auto *IFD = dyn_cast<IndirectFieldDecl>(this )) {
1092
1092
if (!getDeclContext ()->isFunctionOrMethod () &&
1093
1093
!getDeclContext ()->isRecord ())
1094
1094
return false ;
1095
- VarDecl *VD = IFD->getVarDecl ();
1095
+ const VarDecl *VD = IFD->getVarDecl ();
1096
1096
return !VD || VD->getStorageDuration () == SD_Automatic;
1097
1097
}
1098
1098
// and it declares a variable with automatic storage duration
@@ -1105,7 +1105,7 @@ bool NamedDecl::isPlaceholderVar(const LangOptions &LangOpts) const {
1105
1105
}
1106
1106
if (const auto *BD = dyn_cast<BindingDecl>(this );
1107
1107
BD && getDeclContext ()->isFunctionOrMethod ()) {
1108
- VarDecl *VD = BD->getHoldingVar ();
1108
+ const VarDecl *VD = BD->getHoldingVar ();
1109
1109
return !VD || VD->getStorageDuration () == StorageDuration::SD_Automatic;
1110
1110
}
1111
1111
return false ;
You can’t perform that action at this time.
0 commit comments