about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-03-27 15:24:26 -0500
committerAlex Crichton <alex@alexcrichton.com>2017-03-27 15:56:25 -0700
commit5e9d91831a094dae187ba781f98637a902dae0c1 (patch)
treee84df1f690c878c015e93bb5109d9facdf823ee9 /src/rustllvm/RustWrapper.cpp
parent4d93c12581d73cbcedc7fd502f847147b968a78d (diff)
parentfda8e1571f7a0c4da77c57bc7a7728c4ed1e6aea (diff)
downloadrust-5e9d91831a094dae187ba781f98637a902dae0c1.tar.gz
rust-5e9d91831a094dae187ba781f98637a902dae0c1.zip
Rollup merge of #40832 - pftbest:fix_msp430, r=stjepang
libcore: fix compilation on 16bit target (MSP430).

Since PR #40601 has been merged, libcore no longer compiles on MSP430.
The reason is this code in `break_patterns`:
```rust
 let mut random = len;
 random ^= random << 13;
 random ^= random >> 17;
 random ^= random << 5;
 random &= modulus - 1;
```
It assumes that `len` is at least a 32 bit integer.
As a workaround replace `break_patterns` with an empty function for 16bit targets.

cc @stjepang
cc @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions