aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 1c681ce6d9..8b8023a31f 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -3586,7 +3586,7 @@ static void define_builtin_types(CodeGen *g) {
type_enum_field->name = buf_create_from_str(ZigLLVMGetEnvironmentTypeName(environ_type));
type_enum_field->value = i;
- if (environ_type == g->zig_target.environ) {
+ if (environ_type == g->zig_target.env_type) {
g->target_environ_index = i;
}
}