Introduce a new variant type 'TryResult' to represent the result of
authorTed Kremenek <kremenek@apple.com>
Fri, 24 Jul 2009 04:47:11 +0000 (04:47 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 24 Jul 2009 04:47:11 +0000 (04:47 +0000)
commit3075428d16487485f39bd6d4a053da50cf83e203
tree3b1347d7a26ad21ab49bbdbcd0581cad0e66eac3
parent68d64a2d906803eca73f3d393761627ddebcf396
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
clang/lib/Analysis/CFG.cpp