From 28ecf72f79efa55f48b4ecd7cbe4ca29ccaa0f95 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 11 Apr 2015 09:51:20 +0200 Subject: fixes #2498 --- compiler/ccgexprs.nim | 2 -- 1 file changed, 2 deletions(-) (limited to 'compiler') diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 4123be7b9..11c9d2d50 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1587,8 +1587,6 @@ proc genRangeChck(p: BProc, n: PNode, d: var TLoc, magic: string) = [getTypeDesc(p.module, dest), rdCharLoc(a)]) else: initLocExpr(p, n.sons[0], a) - if not leValue(n.sons[1], n.sons[2]): - internalError(n.info, "range check will always fail; empty range") putIntoDest(p, d, dest, ropecg(p.module, "(($1)#$5($2, $3, $4))", [ getTypeDesc(p.module, dest), rdCharLoc(a), genLiteral(p, n.sons[1], dest), genLiteral(p, n.sons[2], dest), -- cgit 1.4.1-2-gfad0 > This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/compiler/vmgen.nim
blob: 62b9e7d1e4e851678997fb4772dccfa8e0ea8124 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13