rustc: Make option<&foo> no longer cause LLVM asserts by getting rid of regions in normalize_ty

This commit is contained in:
Patrick Walton 2012-07-30 11:26:23 -07:00
parent 2e231fbcb7
commit 519deca716

View File

@ -3099,6 +3099,10 @@ fn normalize_ty(cx: ctxt, t: t) -> t {
}
let t = alt get(t).struct {
ty_rptr(region, mt) {
// This type has a region. Get rid of it
mk_rptr(cx, re_static, mt)
}
ty_enum(did, r) {
alt r.self_r {
some(_) {