authorgravatar for shawn@git.icuShawn Landden <shawn@git.icu> 2019-11-06 20:00:39-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-07 02:51:04-05:00
log2e52fafac50b545b5ef7dce42d0827e8077a8698
treed9667b25e5392781125aebebc2503444d9ab67f4
parent697c4ffd41cb99efbcf2e2c5393dd07533552881

correctly use llvm undef in release modes


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
......@@ -5128,7 +5128,7 @@ static LLVMValueRef ir_render_memset(CodeGen *g, IrExecutable *executable, IrIns
51285128
51295129 bool val_is_undef = value_is_all_undef(g, &instruction->byte->value);
51305130 LLVMValueRef fill_char;
5131 if (val_is_undef) {
5131 if (val_is_undef && ir_want_runtime_safety_scope(g, instruction->base.scope)) {
51325132 fill_char = LLVMConstInt(LLVMInt8Type(), 0xaa, false);
51335133 } else {
51345134 fill_char = ir_llvm_value(g, instruction->byte);