summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-09-26 21:23:31 +0000
committerTed Kremenek <kremenek@apple.com>2007-09-26 21:23:31 +0000
commit5c50fd1add9e22809f2b0c253f9bd8245571e4c8 (patch)
treef703194093fa55c7f21fa3a37403673c4cb776c4 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentb805d35d160c8b87cf9054914ce5b67cf87964a9 (diff)
Fixed two bugs in CFG construction:
BUG 1) CFG failed to build for empty functions, or functions containing only NullStmts or empty compound statements. We now handle such cases, although now we cannot test for CFG construction failure by asserting that the last block constructed is not NULL (since it now may be). BUG 2) CFG construction segfaulted on some cases when walking the AST and not taking into account that some children of a statement may be NULL. llvm-svn: 42370
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions