diff --git a/src/tint/transform/manager.cc b/src/tint/transform/manager.cc index 79603c80e2..d680cb6a7a 100644 --- a/src/tint/transform/manager.cc +++ b/src/tint/transform/manager.cc @@ -36,7 +36,7 @@ Transform::ApplyResult Manager::Apply(const Program* program, DataMap& outputs) const { #if TINT_PRINT_PROGRAM_FOR_EACH_TRANSFORM auto print_program = [&](const char* msg, const Transform* transform) { - auto wgsl = Program::printer(in); + auto wgsl = Program::printer(program); std::cout << "---------------------------------------------------------" << std::endl; std::cout << "-- " << msg << " " << transform->TypeInfo().name << ":" << std::endl; std::cout << "---------------------------------------------------------" << std::endl;