aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index fa7ff97d81..a5ca1f1197 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -299,6 +299,9 @@ static void ir_print_store_ptr(IrPrint *irp, IrInstructionStorePtr *instruction)
ir_print_var_instruction(irp, instruction->ptr);
fprintf(irp->f, " = ");
ir_print_other_instruction(irp, instruction->value);
+ if (instruction->is_volatile) {
+ fprintf(irp->f, " // volatile");
+ }
}
static void ir_print_typeof(IrPrint *irp, IrInstructionTypeOf *instruction) {