File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -234,8 +234,8 @@ impl<T: PassManagerSubType> PassManager<T> {
234
234
}
235
235
}
236
236
237
- /// This method returns true if any of the passes modified the module and
238
- /// false otherwise.
237
+ /// This method returns true if any of the passes modified the function or module
238
+ /// and false otherwise.
239
239
pub fn run_on ( & self , input : & T ) -> bool {
240
240
unsafe {
241
241
input. run_in_pass_manager ( self )
Original file line number Diff line number Diff line change @@ -131,8 +131,7 @@ fn test_pass_manager_builder() {
131
131
132
132
let module2 = module. clone ( ) ;
133
133
134
- // TODOC: Seems to return true in 3.7, 6.0, & 7.0 even though no changes were made.
135
- // In 3.6, 3.8, & 3.9 it returns false. Seems like a LLVM bug?
134
+ // TODOC: In 3.6, 3.8, & 3.9 it returns false. Seems like a LLVM bug?
136
135
#[ cfg( not( any( feature = "llvm3-7" , feature = "llvm6-0" , feature = "llvm7-0" ) ) ) ]
137
136
assert ! ( !module_pass_manager. run_on( & module) ) ;
138
137
#[ cfg( any( feature = "llvm3-7" , feature = "llvm6-0" , feature = "llvm7-0" ) ) ]
@@ -142,10 +141,6 @@ fn test_pass_manager_builder() {
142
141
143
142
pass_manager_builder. populate_lto_pass_manager ( & lto_pass_manager, false , false ) ;
144
143
145
- // See above note on version differences
146
- #[ cfg( not( any( feature = "llvm3-7" , feature = "llvm6-0" , feature = "llvm7-0" ) ) ) ]
147
- assert ! ( !lto_pass_manager. run_on( & module2) ) ;
148
- #[ cfg( any( feature = "llvm3-7" , feature = "llvm6-0" , feature = "llvm7-0" ) ) ]
149
144
assert ! ( lto_pass_manager. run_on( & module2) ) ;
150
145
}
151
146
You can’t perform that action at this time.
0 commit comments