diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-03-03 21:43:40 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-17 10:04:37 +0100 |
| commit | f8f27931b9b1118363b364b04fb09526c62d21fb (patch) | |
| tree | 230af8b688b94840ace13f01d7f371d237ddeb60 /validation/context.c | |
| parent | d9e64b95ca178336c0d63b0003b660f42289413c (diff) | |
| download | sparse-dev-f8f27931b9b1118363b364b04fb09526c62d21fb.tar.gz | |
llvm: fix pointer/float mixup in comparisons
In output_op_compare() everything that is not of interger
type is treated as floats. Pointers disagree.
Fix this by rearranging the code and treat pointers like integers
as required for LLVM's icmp.
Reported-by: Dibyendu Majumdar <mobile@majumdar.org.uk>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/context.c')
0 files changed, 0 insertions, 0 deletions
