diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2014-03-01 15:32:05 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2014-03-01 15:32:05 +0000 |
| commit | 31a6db3eab3c7ae97fa0fdd2ce9a3ba73792bdfb (patch) | |
| tree | 4acb2f9d66c88daa52e9c9db6572cb166c6c6f44 /compiler-rt/lib/builtins/modti3.c | |
| parent | 6e99daab4cdce246c87c47298babe0a8a5828c18 (diff) | |
| download | bcm5719-llvm-31a6db3eab3c7ae97fa0fdd2ce9a3ba73792bdfb.tar.gz bcm5719-llvm-31a6db3eab3c7ae97fa0fdd2ce9a3ba73792bdfb.zip | |
Avoid type pruning.
llvm-svn: 202592
Diffstat (limited to 'compiler-rt/lib/builtins/modti3.c')
| -rw-r--r-- | compiler-rt/lib/builtins/modti3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/builtins/modti3.c b/compiler-rt/lib/builtins/modti3.c index da1b3b45a64..d505c07ac16 100644 --- a/compiler-rt/lib/builtins/modti3.c +++ b/compiler-rt/lib/builtins/modti3.c @@ -26,9 +26,9 @@ __modti3(ti_int a, ti_int b) b = (b ^ s) - s; /* negate if s == -1 */ s = a >> bits_in_tword_m1; /* s = a < 0 ? -1 : 0 */ a = (a ^ s) - s; /* negate if s == -1 */ - ti_int r; - __udivmodti4(a, b, (tu_int*)&r); - return (r ^ s) - s; /* negate if s == -1 */ + tu_int r; + __udivmodti4(a, b, &r); + return ((ti_int)r ^ s) - s; /* negate if s == -1 */ } #endif /* CRT_HAS_128BIT */ |

