@@ -748,7 +748,7 @@ impl Build {
748748 /// Note that if LLVM is configured externally then the directory returned
749749 /// will likely be empty.
750750 fn llvm_out ( & self , target : TargetSelection ) -> PathBuf {
751- if self . config . llvm_from_ci && self . is_builder_target ( & target) {
751+ if self . config . llvm_from_ci && self . is_builder_target ( target) {
752752 self . config . ci_llvm_root ( )
753753 } else {
754754 self . out . join ( target) . join ( "llvm" )
@@ -798,7 +798,7 @@ impl Build {
798798 fn is_system_llvm ( & self , target : TargetSelection ) -> bool {
799799 match self . config . target_config . get ( & target) {
800800 Some ( Target { llvm_config : Some ( _) , .. } ) => {
801- let ci_llvm = self . config . llvm_from_ci && self . is_builder_target ( & target) ;
801+ let ci_llvm = self . config . llvm_from_ci && self . is_builder_target ( target) ;
802802 !ci_llvm
803803 }
804804 // We're building from the in-tree src/llvm-project sources.
@@ -1286,7 +1286,7 @@ Executed at: {executed_at}"#,
12861286 // need to use CXX compiler as linker to resolve the exception functions
12871287 // that are only existed in CXX libraries
12881288 Some ( self . cxx . borrow ( ) [ & target] . path ( ) . into ( ) )
1289- } else if !self . is_builder_target ( & target)
1289+ } else if !self . is_builder_target ( target)
12901290 && helpers:: use_host_linker ( target)
12911291 && !target. is_msvc ( )
12921292 {
@@ -1939,8 +1939,8 @@ to download LLVM rather than building it.
19391939 }
19401940
19411941 /// Checks if the given target is the same as the builder target.
1942- fn is_builder_target ( & self , target : & TargetSelection ) -> bool {
1943- & self . config . build == target
1942+ fn is_builder_target ( & self , target : TargetSelection ) -> bool {
1943+ self . config . build == target
19441944 }
19451945}
19461946
0 commit comments