Skip to content

Commit bef14fd

Browse files
committed
enabling both flags for filter of printTa
Signed-off-by: Karan Janthe <[email protected]>
1 parent 4cd65a5 commit bef14fd

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+2
-1
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ fn enable_autodiff_settings(ad: &[config::AutoDiff]) {
600600
llvm::set_print_type(true);
601601
}
602602
config::AutoDiff::PrintTAFn(fun) => {
603-
llvm::set_print_type_fun(&fun);
603+
llvm::set_print_type(true); // Enable general type printing
604+
llvm::set_print_type_fun(&fun); // Set specific function to analyze
604605
}
605606
config::AutoDiff::Inline => {
606607
llvm::set_inline(true);

0 commit comments

Comments
 (0)