Skip to content

Commit 6662aeb

Browse files
committed
Calm some LLVM indigestion of last change.
1 parent 4d31cf1 commit 6662aeb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
451451
rec.rs \
452452
simple-obj.rs \
453453
spawn-fn.rs \
454+
spawn-module-qualified.rs \
454455
spawn.rs \
455456
stateful-obj.rs \
456457
str-append.rs \

src/boot/llvm/lltrans.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,16 +764,16 @@ let trans_crate
764764
match lval with
765765
Ast.LVAL_base { id = base_id } ->
766766
set_debug_loc base_id;
767-
let referent = lval_to_referent sem_cx base_id in
767+
let defn_id = lval_base_defn_id sem_cx lval in
768768
begin
769-
match resolve_lval_id sem_cx base_id with
769+
match get_defn sem_cx defn_id with
770770
Semant.DEFN_slot slot ->
771-
(Hashtbl.find slot_to_llvalue referent, slot_ty slot)
771+
(Hashtbl.find slot_to_llvalue defn_id, slot_ty slot)
772772
| Semant.DEFN_item _ ->
773-
(Hashtbl.find llitems referent, lval_ty sem_cx lval)
773+
(Hashtbl.find llitems defn_id, lval_ty sem_cx lval)
774774
| _ ->
775-
Common.unimpl (Some referent)
776-
"LLVM base-referent translation of: %a"
775+
Common.unimpl (Some defn_id)
776+
"LLVM base-defn translation of: %a"
777777
Ast.sprintf_lval lval
778778
end
779779
| Ast.LVAL_ext (base, component) ->

0 commit comments

Comments
 (0)