projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/pic/ralloc.c (newReg): create aliases for registers with
[fw/sdcc]
/
src
/
pic
/
pcode.c
diff --git
a/src/pic/pcode.c
b/src/pic/pcode.c
index fe75ecf7e7baa54739a394cf50c3e9e388577b68..c37d6ff85359a323aaba0e2892a1e7fb0bdc0eba 100644
(file)
--- a/
src/pic/pcode.c
+++ b/
src/pic/pcode.c
@@
-4755,6
+4755,11
@@
static int DoBankSelect(pCode *pc, int cur_bank) {
}
reg = getRegFromInstruction(pc);
+ if (!reg && isPCI(pc) &&
+ ((PCI(pc)->inCond | PCI(pc)->outCond) & PCC_REGISTER))
+ {
+ assert(!"Could not get register from instruction.");
+ }
if (reg) {
if (IsBankChange(pc,reg,&cur_bank))
return cur_bank;