@@ -748,7 +748,7 @@ impl Build {
748
748
/// Note that if LLVM is configured externally then the directory returned
749
749
/// will likely be empty.
750
750
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) {
752
752
self . config . ci_llvm_root ( )
753
753
} else {
754
754
self . out . join ( target) . join ( "llvm" )
@@ -798,7 +798,7 @@ impl Build {
798
798
fn is_system_llvm ( & self , target : TargetSelection ) -> bool {
799
799
match self . config . target_config . get ( & target) {
800
800
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) ;
802
802
!ci_llvm
803
803
}
804
804
// We're building from the in-tree src/llvm-project sources.
@@ -1286,7 +1286,7 @@ Executed at: {executed_at}"#,
1286
1286
// need to use CXX compiler as linker to resolve the exception functions
1287
1287
// that are only existed in CXX libraries
1288
1288
Some ( self . cxx . borrow ( ) [ & target] . path ( ) . into ( ) )
1289
- } else if !self . is_builder_target ( & target)
1289
+ } else if !self . is_builder_target ( target)
1290
1290
&& helpers:: use_host_linker ( target)
1291
1291
&& !target. is_msvc ( )
1292
1292
{
@@ -1939,8 +1939,8 @@ to download LLVM rather than building it.
1939
1939
}
1940
1940
1941
1941
/// 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
1944
1944
}
1945
1945
}
1946
1946
0 commit comments