aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-05 16:00:12 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-05 16:00:12 -0500
commit025051885be8c99bfccc7d3746ac138f7d5546e1 (patch)
tree20cbf34b93811f6b1a3d8c409d2a6bddc2eb3ea4 /src/ir.cpp
parentd151c58788098778c07f764d2256955cb36a832f (diff)
downloadzig-025051885be8c99bfccc7d3746ac138f7d5546e1.tar.gz
zig-025051885be8c99bfccc7d3746ac138f7d5546e1.zip
fix volatile not respected for loads
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}