File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,6 @@ fn extract_programs(module: &mut Module) -> Result<Vec<shared::Program>, Error>
321
321
to_remove. push ( i) ;
322
322
323
323
let mut payload = custom. payload ( ) ;
324
- let mut added_programs = Vec :: new ( ) ;
325
324
while payload. len ( ) > 0 {
326
325
let len = ( ( payload[ 0 ] as usize ) << 0 )
327
326
| ( ( payload[ 1 ] as usize ) << 8 )
@@ -330,19 +329,6 @@ fn extract_programs(module: &mut Module) -> Result<Vec<shared::Program>, Error>
330
329
let ( a, b) = payload[ 4 ..] . split_at ( len as usize ) ;
331
330
payload = b;
332
331
333
- // Due to a nasty LLVM bug it's currently possible for LLVM to
334
- // duplicate custom section directives in intermediate object files.
335
- // This means that we could see multiple program directives when in
336
- // fact we were originally only meant to see one!
337
- //
338
- // Work around the issue here until the upstream bug,
339
- // https://bugs.llvm.org/show_bug.cgi?id=38184, is hopefully fixed
340
- // via some other means.
341
- if added_programs. iter ( ) . any ( |p| a == * p) {
342
- continue
343
- }
344
- added_programs. push ( a) ;
345
-
346
332
let p: shared:: ProgramOnlySchema = match serde_json:: from_slice ( & a) {
347
333
Ok ( f) => f,
348
334
Err ( e) => bail ! ( "failed to decode what looked like wasm-bindgen data: {}" , e) ,
You can’t perform that action at this time.
0 commit comments