diff options
author | Eli Friedman <efriedma@quicinc.com> | 2021-06-16 00:00:13 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2021-06-17 14:05:12 -0700 |
commit | 8a567e5f22a6d76ce076cf4305fe5c7cbff50fe0 (patch) | |
tree | 4e6848c0afbdfc55065201d77e9973cb2d494420 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 116841c623747972d0ae80239d3ea7b8409b868b (diff) | |
download | llvm-8a567e5f22a6d76ce076cf4305fe5c7cbff50fe0.zip llvm-8a567e5f22a6d76ce076cf4305fe5c7cbff50fe0.tar.gz llvm-8a567e5f22a6d76ce076cf4305fe5c7cbff50fe0.tar.bz2 |
[ScalarEvolution] Fix pointer/int type handling converting select/phi to min/max.
The old version of this code would blindly perform arithmetic without
paying attention to whether the types involved were pointers or
integers. This could lead to weird expressions like negating a pointer.
Explicitly handle simple cases involving pointers, like "x < y ? x : y".
In all other cases, coerce the operands of the comparison to integer
types. This avoids the weird cases, while handling most of the
interesting cases.
Differential Revision: https://reviews.llvm.org/D103660
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions