| commit | 3075428d16487485f39bd6d4a053da50cf83e203 | [log] [tgz] |
|---|---|---|
| author | Ted Kremenek <kremenek@apple.com> | Fri Jul 24 04:47:11 2009 +0000 |
| committer | Ted Kremenek <kremenek@apple.com> | Fri Jul 24 04:47:11 2009 +0000 |
| tree | 3b1347d7a26ad21ab49bbdbcd0581cad0e66eac3 | |
| parent | 68d64a2d906803eca73f3d393761627ddebcf396 [diff] |
Introduce a new variant type 'TryResult' to represent the result of TryEvaluateBool instead of using a raw 'int'. This avoids any confusion of how 'int' converts to bool, and makes the resultant code easier to read. Condense a bunch of 'addSuccessor()' calls in 'if ... else' to use the ternary operator instead. llvm-svn: 76947