From 025051885be8c99bfccc7d3746ac138f7d5546e1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 5 Feb 2017 16:00:12 -0500 Subject: fix volatile not respected for loads --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 629c4149eb..96f0929fa7 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8367,7 +8367,7 @@ static TypeTableEntry *ir_analyze_dereference(IrAnalyze *ira, IrInstructionUnOp return child_type; } - ir_build_un_op_from(&ira->new_irb, &un_op_instruction->base, IrUnOpDereference, value); + ir_build_load_ptr_from(&ira->new_irb, &un_op_instruction->base, value); return child_type; } -- cgit v1.2.3