aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorxackus <14938807+xackus@users.noreply.github.com>2020-04-19 05:23:14 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-04-19 03:49:36 -0400
commitd415ffd7d95f9c88210154c19e64dabd6b546809 (patch)
tree68202442782bfdf3d33b99329a534000ad6bfcf3 /src/ir.cpp
parent6c907a350989aa881cc0b0f71ec81d1ae1b449b7 (diff)
downloadzig-d415ffd7d95f9c88210154c19e64dabd6b546809.tar.gz
zig-d415ffd7d95f9c88210154c19e64dabd6b546809.zip
fix uninitialized ZigValue
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 8a750e6983..2732f4e023 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -17009,7 +17009,7 @@ static IrInstGen *ir_analyze_bit_shift(IrAnalyze *ira, IrInstSrcBinOp *bin_op_in
if (op2_val == nullptr)
return ira->codegen->invalid_inst_gen;
- ZigValue bit_count_value;
+ ZigValue bit_count_value = {};
init_const_usize(ira->codegen, &bit_count_value, bit_count);
if (!value_cmp_numeric_val_all(op2_val, CmpLT, &bit_count_value)) {