fix memory profiling

This commit is contained in:
Andrew Kelley
2020-01-25 22:02:10 -05:00
parent 6aac423964
commit 32f0039b43
2 changed files with 228 additions and 228 deletions

View File

@@ -1959,7 +1959,7 @@ static T *ir_create_instruction(IrBuilderSrc *irb, Scope *scope, AstNode *source
const char *name = nullptr;
#ifdef ZIG_ENABLE_MEM_PROFILE
T *dummy = nullptr;
name = ir_instruction_type_str(ir_inst_id(dummy));
name = ir_inst_src_type_str(ir_inst_id(dummy));
#endif
T *special_instruction = allocate<T>(1, name);
special_instruction->base.id = ir_inst_id(special_instruction);