diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-27 01:43:14 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-01 02:55:13 +0200 |
| commit | 4e04d57efa665ae62a2af4c2d785809f15c17599 (patch) | |
| tree | 424c1b1b472505f8c0ba1e78baee5aa43975b7d8 /src/rustllvm/RustWrapper.cpp | |
| parent | d754722a04b99fdcae0fd97fa2a4395521145ef2 (diff) | |
| download | rust-4e04d57efa665ae62a2af4c2d785809f15c17599.tar.gz rust-4e04d57efa665ae62a2af4c2d785809f15c17599.zip | |
Added type-specific overflow checks when computing enum discriminant values.
Moved such overflow checking into one place (in `rustc::middle::ty`, since it needs to be run on-demand during `const_eval` in some scenarios), and revised `rustc_typeck` accordingly. (Note that we only check for overflow if program did not provide a discriminant value explicitly.) Fix #23030 Fix #23221 Fix #23235
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
