aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGRecordLayoutBuilder.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-24 04:47:11 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-24 04:47:11 +0000
commit941fde8019d47c694b8483db45d5878818fa69d1 (patch)
tree38be7c368c562aecd94f4cad0b6938d63c0769fa /lib/CodeGen/CGRecordLayoutBuilder.cpp
parente3e643f12cc65a70e440bcdbb37b81d5fd022143 (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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRecordLayoutBuilder.cpp')
0 files changed, 0 insertions, 0 deletions