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
1 file changed
tree: 3b1347d7a26ad21ab49bbdbcd0581cad0e66eac3
  1. clang/
  2. compiler-rt/
  3. llvm/