aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-06-03 22:59:41 +0000
committerJordan Rose <jordan_rose@apple.com>2013-06-03 22:59:41 +0000
commit5250b873bb12716e60818f5a97aa6df824760af3 (patch)
treeef81afa277687230c7e3d755e70a85f7b2d9d15c /clang/lib/CodeGen/ModuleBuilder.cpp
parent1d1592624c73b83723f93867c459e71afc6e9aed (diff)
downloadllvm-5250b873bb12716e60818f5a97aa6df824760af3.zip
llvm-5250b873bb12716e60818f5a97aa6df824760af3.tar.gz
llvm-5250b873bb12716e60818f5a97aa6df824760af3.tar.bz2
CFG: In a DeclStmt, skip anything that's not a VarDecl.
Neither the compiler nor the analyzer are doing anything with non-VarDecl decls in the CFG, and having them there creates extra nodes in the analyzer's path diagnostics. Simplify the CFG (and the path edges) by simply leaving them out. We can always add interesting decls back in when they become relevant. Note that this only affects decls declared in a DeclStmt, and then only those that appear within a function body. llvm-svn: 183157
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions