File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4205,15 +4205,15 @@ void Sema::ActOnUninitializedDecl(DeclPtrTy dcl,
4205
4205
return ;
4206
4206
}
4207
4207
4208
- // Provide a specific diagnostic for uninitialized variable
4209
- // definitions with reference type.
4210
- if (Type->isReferenceType ()) {
4211
- Diag (Var->getLocation (), diag::err_reference_var_requires_init)
4212
- << Var->getDeclName ()
4213
- << SourceRange (Var->getLocation (), Var->getLocation ());
4214
- Var->setInvalidDecl ();
4215
- return ;
4216
- }
4208
+ // Provide a specific diagnostic for uninitialized variable
4209
+ // definitions with reference type.
4210
+ if (Type->isReferenceType ()) {
4211
+ Diag (Var->getLocation (), diag::err_reference_var_requires_init)
4212
+ << Var->getDeclName ()
4213
+ << SourceRange (Var->getLocation (), Var->getLocation ());
4214
+ Var->setInvalidDecl ();
4215
+ return ;
4216
+ }
4217
4217
4218
4218
// Do not attempt to type-check the default initializer for a
4219
4219
// variable with dependent type.
You can’t perform that action at this time.
0 commit comments