forked from OSchip/llvm-project
parent
c76dcbdc0c
commit
598b943410
|
@ -371,8 +371,10 @@ Sema::ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
|
|||
// Otherwise, things are good. Fill in the declaration and return it.
|
||||
LabelStmt *LS = new (Context) LabelStmt(IdentLoc, TheDecl, SubStmt);
|
||||
TheDecl->setStmt(LS);
|
||||
if (!TheDecl->isGnuLocal())
|
||||
if (!TheDecl->isGnuLocal()) {
|
||||
TheDecl->setLocStart(IdentLoc);
|
||||
TheDecl->setLocation(IdentLoc);
|
||||
}
|
||||
return Owned(LS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue