mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
Revert "x86: work around compiler diagnosing dangling pointer"
This reverts commit 983db9932a
.
This commit is contained in:
parent
5b720e50c7
commit
ea5c591c02
@ -345,12 +345,6 @@ fetch_error (const instr_info *ins)
|
||||
const struct dis_private *priv = ins->info->private_data;
|
||||
const char *name = NULL;
|
||||
|
||||
/* Our caller has put a pointer to a local variable in info->private_data
|
||||
and it is going to return right after this function has returned. Some
|
||||
compilers diagnose this as a dangling pointer. Zap the pointer here to
|
||||
avoid needing to do so on all involved return paths in the caller. */
|
||||
ins->info->private_data = NULL;
|
||||
|
||||
if (ins->codep <= priv->the_buffer)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user