Skip to content
Commit bbad8ce2 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Fixed bug where the CFG would fail to build when an 'if' statement had

an empty then or else block (or contained only ';' statements).

For example, we now handle the following:

int empty_else() { if (0) { int a; } else ; }
int empty_then() { if (0) ; else { int a; } }

Thanks to Nico Weber for spotting this problem.

llvm-svn: 41617
parent 90dfdd57
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