mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
fix bug in constants addition
This commit is contained in:
parent
9c29630dbf
commit
fb1c02657b
@ -202,6 +202,7 @@ addcon(Con *c0, Con *c1)
|
||||
if (c1->type == CAddr) {
|
||||
if (c0->type == CAddr)
|
||||
diag("addcon: adding two addresses");
|
||||
c0->type = CAddr;
|
||||
strcpy(c0->label, c1->label);
|
||||
}
|
||||
c0->val += c1->val;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user