mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Fixed #35 — ICE: postfix operation on typedef'd value
This commit is contained in:
parent
4b22221eb9
commit
2980f703b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue