From c9c48776090700307df7588cff93267755c0329f Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Thu, 30 Dec 2010 14:04:24 +0300 Subject: [PATCH] LDC does not use SymOffExp --- dmd2/cast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dmd2/cast.c b/dmd2/cast.c index dd9c1198..c8ab56a6 100644 --- a/dmd2/cast.c +++ b/dmd2/cast.c @@ -617,11 +617,13 @@ MATCH AddrExp::implicitConvTo(Type *t) t->ty == Tpointer && t->nextOf()->ty == Tfunction && e1->op == TOKvar) { +#if !IN_LLVM /* I don't think this can ever happen - * it should have been * converted to a SymOffExp. */ assert(0); +#endif VarExp *ve = (VarExp *)e1; FuncDeclaration *f = ve->var->isFuncDeclaration(); if (f && f->overloadExactMatch(t->nextOf(), m))