From 542db5ce066151564bba89d85ad08c8a196e1bcd Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Fri, 18 Nov 2022 12:11:33 +0000 Subject: [PATCH] tint: Fix TINT_PRINT_PROGRAM_FOR_EACH_TRANSFORM The #if disabled code wasn't compiling as a variable was renamed Change-Id: I2ce7210d18d52036dd99f729a44e21c6137f84a9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110520 Auto-Submit: Ben Clayton Commit-Queue: James Price Kokoro: Kokoro Reviewed-by: James Price --- src/tint/transform/manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;