rust/src
bors c22cb5359f Auto merge of #31176 - frewsxcv:incorrect-pass-kind, r=dotdash
Register LLVM passes with the correct LLVM pass manager.

LLVM was upgraded to a new version in this commit:

f9d4149c29

which was part of this pull request:

https://github.com/rust-lang/rust/issues/26025

Consider the following two lines from that commit:

f9d4149c29 (diff-a3b24dbe2ea7c1981f9ac79f9745f40aL462)

f9d4149c29 (diff-a3b24dbe2ea7c1981f9ac79f9745f40aL469)

The purpose of these lines is to register LLVM passes. Prior to the that
commit, the passes being handled were assumed to be ModulePasses (a
specific type of LLVM pass) since they were being added to a ModulePass
manager. After that commit, both lines were refactored (presumably in an
attempt to DRY out the code), but the ModulePasses were changed to be
registered to a FunctionPass manager. This change resulted in
ModulePasses being run, but a Function object was being passed as a
parameter to the pass instead of a Module, which resulted in
segmentation faults.

In this commit, I changed relevant sections of the code to check the
type of the passes being added and register them to the appropriate pass
manager.

Closes https://github.com/rust-lang/rust/issues/31067
2016-01-25 09:37:11 +00:00
..
compiler-rt@b6087e82ba
compiletest Add powerpc64 and powerpc64le support 2016-01-13 01:39:00 +00:00
doc Clarify when `Cargo.lock` is created by `cargo build` in the book 2016-01-23 23:39:38 -05:00
driver
error-index-generator
etc etc: Remove old num/libc generation code 2016-01-21 14:48:18 -08:00
grammar Fix whitespace alignment 2015-12-24 21:39:38 -05:00
jemalloc@e24a1a025a Downgrade bundled jemalloc version 2016-01-20 09:38:16 -08:00
liballoc Auto merge of #31043 - shahn:arc_weak, r=alexcrichton 2016-01-21 17:11:13 +00:00
liballoc_jemalloc Add powerpc64 and powerpc64le support 2016-01-13 01:39:00 +00:00
liballoc_system Add powerpc64 and powerpc64le support 2016-01-13 01:39:00 +00:00
libarena Deprecate reflection-based Arena 2016-01-06 18:07:21 +01:00
libbacktrace libbacktrace: Reapply Rust-specific changes 2016-01-15 19:24:50 +03:00
libcollections Rollup merge of #31136 - mbrubeck:btree-doc, r=steveklabnik 2016-01-23 09:38:44 -05:00
libcollectionstest Make `btree_set::{IntoIter, Iter, Range}` covariant 2016-01-18 07:53:12 -05:00
libcore Auto merge of #31116 - bluss:expect-out-cold, r=alexcrichton 2016-01-23 00:33:23 +00:00
libcoretest Auto merge of #30917 - arthurprs:bs_bounds_check, r=alexcrichton 2016-01-22 19:00:15 +00:00
libflate Register new snapshots 2015-12-21 09:26:21 -08:00
libfmt_macros Register new snapshots 2015-12-21 09:26:21 -08:00
libgetopts Register new snapshots 2015-12-21 09:26:21 -08:00
libgraphviz std: Stabilize APIs for the 1.7 release 2016-01-16 11:03:10 -08:00
liblibc@af77843345 updating the libc dependency to pull in build breaker fixes 2016-01-21 10:05:27 -08:00
liblog Register new snapshots 2015-12-21 09:26:21 -08:00
librand Fix a breaking change in #30523 2016-01-05 22:16:03 -08:00
librbml manual fixups 2016-01-19 14:39:23 +13:00
librustc Auto merge of #31087 - nikomatsakis:incr-comp-fulfillment-cache, r=arielb1 2016-01-22 17:09:37 +00:00
librustc_back Fix LLVM default CPU on powerpc64 and powerpc64le 2016-01-17 19:45:10 +00:00
librustc_bitflags Register new snapshots 2015-12-21 09:26:21 -08:00
librustc_borrowck Rollup merge of #31050 - apasel422:issue-31048, r=Manishearth 2016-01-23 09:38:42 -05:00
librustc_data_structures [MIR] Promote temps to alloca on multi-assignment 2016-01-21 19:01:43 +02:00
librustc_driver move more checks out of librustc 2016-01-21 10:52:37 +01:00
librustc_front Fix a bug with caching ids in the HIR lowering with nested lowered nodes 2016-01-20 15:58:59 +13:00
librustc_lint clean up trans_static_method_callee and friends 2016-01-21 14:42:09 +02:00
librustc_llvm Register LLVM passes with the correct LLVM pass manager. 2016-01-25 00:15:39 -05:00
librustc_metadata Auto merge of #31024 - oli-obk:move_checks_out_of_librustc, r=arielb1 2016-01-21 15:21:09 +00:00
librustc_mir Add Debug impl and erase region for TypedConstVal 2016-01-21 22:53:00 +01:00
librustc_passes Improve the error explanations for check_const 2016-01-24 17:16:04 +02:00
librustc_platform_intrinsics Register new snapshots 2015-12-21 09:26:21 -08:00
librustc_plugin use structured errors 2015-12-30 14:27:59 +13:00
librustc_privacy Rename Def's variants and don't reexport them 2016-01-20 22:31:10 +03:00
librustc_resolve Rollup merge of #31045 - Manishearth:diag-prim-shadow, r=steveklabnik 2016-01-23 09:38:42 -05:00
librustc_trans Register LLVM passes with the correct LLVM pass manager. 2016-01-25 00:15:39 -05:00
librustc_typeck Rollup merge of #31130 - marcbowes:master, r=nrc 2016-01-23 09:38:44 -05:00
librustc_unicode Fix some broken and missing links in the docs 2016-01-13 23:19:24 +00:00
librustdoc Rollup merge of #31055 - steveklabnik:alt-tags, r=alexcrichton 2016-01-23 09:38:42 -05:00
libserialize std: Stabilize APIs for the 1.7 release 2016-01-16 11:03:10 -08:00
libstd Auto merge of #31166 - geofft:process-comments, r=alexcrichton 2016-01-24 23:27:10 +00:00
libsyntax syntax: Fix encoding and decoding spans 2016-01-20 10:04:31 -08:00
libsyntax_ext Cut out a bunch of Result and panictry! boilerplate from libsyntax. 2015-12-31 14:29:02 +13:00
libterm rustfmt libterm 2016-01-19 14:51:22 +13:00
libtest manual fixups 2016-01-19 15:02:56 +13:00
llvm@3564439515
rt [MIR] Implement extern call support 2016-01-19 15:14:04 +02:00
rtstartup Register new snapshots 2015-12-21 09:26:21 -08:00
rust-installer@c37d3747da
rustbook std: Stabilize APIs for the 1.7 release 2016-01-16 11:03:10 -08:00
rustllvm Register LLVM passes with the correct LLVM pass manager. 2016-01-25 00:15:39 -05:00
test Rollup merge of #31031 - brson:issue-30123, r=nikomatsakis 2016-01-23 09:38:41 -05:00
snapshots.txt Fixes #30628 by adding new snapshot for dragonfly bsd 2016-01-08 09:37:14 -08:00