Skip to content

Commit a6d3669

Browse files
committed
---
yaml --- r: 103968 b: refs/heads/try c: 285c25f h: refs/heads/master v: v3
1 parent 735b86e commit a6d3669

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
5-
refs/heads/try: 1dd18801216b26595a7b374e5dc8ee32eb577954
5+
refs/heads/try: 285c25f7f4fd5e824da6b6d670a141535f948750
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@ fn load<'a>(bcx: &'a Block<'a>, llptr: ValueRef, ty: ty::t) -> ValueRef {
546546
C_undef(type_of::type_of(bcx.ccx(), ty))
547547
} else if ty::type_is_bool(ty) {
548548
LoadRangeAssert(bcx, llptr, 0, 2, lib::llvm::True)
549+
} else if ty::type_is_char(ty) {
550+
// a char is a unicode codepoint, and so takes values from 0
551+
// to 0x10FFFF inclusive only.
552+
LoadRangeAssert(bcx, llptr, 0, 0x10FFFF + 1, lib::llvm::False)
549553
} else {
550554
Load(bcx, llptr)
551555
}

0 commit comments

Comments
 (0)