aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/ModuleBuilder.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
commit322f58d3830da13b419646c071e3ab801518a09c (patch)
tree0efcbc4f1dc3bd7981c832f6e6669fae519c9d61 /CodeGen/ModuleBuilder.cpp
parent9f3d942e9970bc8f51add390b2a2c46b5a2ab747 (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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions