diff --git a/xla/service/cpu/cpu_compiler.cc b/xla/service/cpu/cpu_compiler.cc index f7546234d447f..9e1df5b6f016c 100644 --- a/xla/service/cpu/cpu_compiler.cc +++ b/xla/service/cpu/cpu_compiler.cc @@ -795,8 +795,7 @@ absl::Status CpuCompiler::RunHloPassesAfterLayoutAssn( // duplicate or NOPs, so remove them with algebraic simplification and CSE. // Run this to a fixed point. [&pipeline = pipeline.AddPass>( - "simplification after layout assignment"), - this] { + "simplification after layout assignment")] { AddHloVerifier( &pipeline, HloVerifierOpts{}.MakeLayoutSensitive().WithInstructionCanChangeLayout(