aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/memops.c
diff options
context:
space:
mode:
Diffstat (limited to 'memops.c')
-rw-r--r--memops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/memops.c b/memops.c
index 31fd2d3e..8020f2e6 100644
--- a/memops.c
+++ b/memops.c
@@ -215,6 +215,8 @@ static bool try_to_kill_store(pseudo_t pseudo, struct instruction *insn,
return false;
if (dom->opcode == OP_LOAD)
return false;
+ if (dom->is_volatile)
+ return false;
/* Yeehaa! Found one! */
kill_instruction_force(dom);
}