diff options
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index e7af016d5..d6f46ce4d 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1534,6 +1534,9 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) { case irInstr_Load: { Type *type = instr->Load.type; ir_fprintf(f, "%%%d = load ", value->index); + if (instr->Load.is_volatile) { + ir_write_str_lit(f, "volatile "); + } ir_print_type(f, m, type); ir_write_str_lit(f, ", "); ir_print_type(f, m, type); |