Fix warning related to unreachable-code.
Signed-off-by: Jackie9527 <80555200+Jackie9527@users.noreply.github.com>pull/5075/head
parent
5c5b0f97b7
commit
a8e7c23605
|
@ -198,8 +198,8 @@ Scope::Scope(Parser& parser,bool topLevel)
|
|||
elements.insert(ElementMap::value_type(str, element));
|
||||
return;
|
||||
}
|
||||
ParseError("unexpected end of file",parser.LastToken());
|
||||
delete element;
|
||||
ParseError("unexpected end of file",parser.LastToken());
|
||||
} else {
|
||||
elements.insert(ElementMap::value_type(str, element));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue