From 2980f703b187f53da2b9e8330c20b288c218cf4c Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Mon, 5 Dec 2011 13:09:10 +0400 Subject: [PATCH] =?UTF-8?q?Fixed=20#35=20=E2=80=94=20ICE:=20postfix=20oper?= =?UTF-8?q?ation=20on=20typedef'd=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/toir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 9c95e07502..0815323432 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -1764,7 +1764,7 @@ DValue* PostExp::toElem(IRState* p) } else if (e1type->ty == Tpointer) { - assert(e2type->isintegral()); + assert(e2->op == TOKint64); LLConstant* minusone = LLConstantInt::get(DtoSize_t(),(uint64_t)-1,true); LLConstant* plusone = LLConstantInt::get(DtoSize_t(),(uint64_t)1,false); LLConstant* whichone = (op == TOKplusplus) ? plusone : minusone;