diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-02-05 16:00:12 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-02-05 16:00:12 -0500 |
| commit | 025051885be8c99bfccc7d3746ac138f7d5546e1 (patch) | |
| tree | 20cbf34b93811f6b1a3d8c409d2a6bddc2eb3ea4 /src/ir.cpp | |
| parent | d151c58788098778c07f764d2256955cb36a832f (diff) | |
| download | zig-025051885be8c99bfccc7d3746ac138f7d5546e1.tar.gz zig-025051885be8c99bfccc7d3746ac138f7d5546e1.zip | |
fix volatile not respected for loads
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
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; } |
