to pCodeInstruction to avoid a segmentation fault
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5407
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2009-03-10 Raphael Neider <rneider AT web.de>
+
+ * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
+ to pCodeInstruction to avoid a segmentation fault
+
2009-03-03 Borut Razem <borut.razem AT siol.net>
* device/lib/printf_large.c: fixed bug #2656821: bug in printf
}
if( (pct = findLabelinpBlock(pb,pcol)) != NULL)
- LinkFlow_pCode(PCI(pc),PCI(pct));
+ LinkFlow_pCode(PCI(pc),PCI(pic16_findNextInstruction(pct)));
else
fprintf(stderr, "ERROR: %s, couldn't find label. key=%d,lab=%s\n",
__FUNCTION__,pcol->key,((PCOP(pcol)->name)?PCOP(pcol)->name:"-"));