mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Fixed #35 — ICE: postfix operation on typedef'd value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user