Skip to content

Commit 1bd8f35

Browse files
committed
---
yaml --- r: 123653 b: refs/heads/try c: e646188 h: refs/heads/master i: 123651: 2c2be88 v: v3
1 parent 197822d commit 1bd8f35

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: 7cce75f839e92f7b89cac2d6002fb3cc08a2c454
5+
refs/heads/try: e646188f66e40781131940d3b4d74a94cb2b10bf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/trans/consts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ fn const_expr_unadjusted(cx: &CrateContext, e: &ast::Expr,
484484
if ty::type_is_signed(ety) { llvm::LLVMConstFPToSI(v, llty.to_ref()) }
485485
else { llvm::LLVMConstFPToUI(v, llty.to_ref()) }
486486
}
487-
(expr::cast_enum, expr::cast_integral) |
488-
(expr::cast_enum, expr::cast_float) => {
487+
(expr::cast_enum, expr::cast_integral) => {
489488
let repr = adt::represent_type(cx, basety);
490489
let discr = adt::const_get_discrim(cx, &*repr, v);
491490
let iv = C_integral(cx.int_type, discr, false);

0 commit comments

Comments
 (0)