aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-06-03 22:59:53 +0000
committerJordan Rose <jordan_rose@apple.com>2013-06-03 22:59:53 +0000
commit06e800727e8f82936b64df965b8805f09949baa0 (patch)
tree49735f39d6fac4020ccd3910bab400e598ff56a6 /clang/lib/CodeGen/ModuleBuilder.cpp
parentb1db073dac02399a211d47ac5aa9276a37c97dc9 (diff)
downloadllvm-06e800727e8f82936b64df965b8805f09949baa0.zip
llvm-06e800727e8f82936b64df965b8805f09949baa0.tar.gz
llvm-06e800727e8f82936b64df965b8805f09949baa0.tar.bz2
[analyzer; new edges] Improve enclosing contexts for logical expressions.
The old edge builder didn't have a notion of nested statement contexts, so there was no special treatment of a logical operator inside an if (or inside another logical operator). The new edge builder always tries to establish the full context up to the top-level statement, so it's important to know how much context has been established already rather than just checking the innermost context. This restores some of the old behavior for the old edge generation: the context of a logical operator's non-controlling expression is the subexpression in the old edge algorithm, but the entire operator expression in the new algorithm. llvm-svn: 183160
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions