Skip to content
Commit ac4471c9 authored by Chris Lattner's avatar Chris Lattner
Browse files

Improve the parsers resilience to sematic errors. This allows us to turn:

void foo() {
  if (0) break;
  abc:
  def:
  hij:
    break;

into:

void foo() {
  if ((0)')
    ;
abc:
def:
hij:
  ;

instead of dropping the if and labels (due to break not being in a loop).

llvm-svn: 39508
parent 2f6ac263
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment