regclass.c (reg_scan_mark_refs): Return immediately if passed a NULL_RTX as an argument.
8 * regclass.c (reg_scan_mark_refs): Return immediately if passed a NULL_RTX as an argument. From-SVN: r22741
This commit is contained in:
parent
8ac538460a
commit
fa23c63611
1 changed files with 9 additions and 1 deletions
|
@ -1991,10 +1991,18 @@ reg_scan_mark_refs (x, insn, note_flag, min_regno)
|
|||
int note_flag;
|
||||
int min_regno;
|
||||
{
|
||||
register enum rtx_code code = GET_CODE (x);
|
||||
register enum rtx_code code;
|
||||
register rtx dest;
|
||||
register rtx note;
|
||||
|
||||
/* This can happen when scanning insns referenced by certain notes.
|
||||
|
||||
It is unclear if we should be scanning such insns; until someone can
|
||||
say for sure this seems like the safest fix. */
|
||||
if (x == NULL_RTX)
|
||||
return;
|
||||
|
||||
code = GET_CODE (x);
|
||||
switch (code)
|
||||
{
|
||||
case CONST_INT:
|
||||
|
|
Loading…
Add table
Reference in a new issue