load literals that are union args

This commit is contained in:
Brendan Hansknecht 2022-02-19 19:24:37 -08:00
parent 28ec18c564
commit c6f1edbf47
2 changed files with 7 additions and 6 deletions

View file

@ -335,6 +335,7 @@ trait Backend<'a> {
arguments, arguments,
.. ..
} => { } => {
self.load_literal_symbols(arguments);
self.tag(sym, &arguments, tag_layout, *tag_id); self.tag(sym, &arguments, tag_layout, *tag_id);
} }
x => todo!("the expression, {:?}", x), x => todo!("the expression, {:?}", x),

View file

@ -1,8 +1,8 @@
#[cfg(feature = "gen-llvm")] #[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_evals_to; use crate::helpers::llvm::assert_evals_to;
// #[cfg(feature = "gen-dev")] #[cfg(feature = "gen-dev")]
// use crate::helpers::dev::assert_evals_to; use crate::helpers::dev::assert_evals_to;
#[cfg(feature = "gen-wasm")] #[cfg(feature = "gen-wasm")]
use crate::helpers::wasm::assert_evals_to; use crate::helpers::wasm::assert_evals_to;
@ -29,7 +29,7 @@ fn width_and_alignment_u8_u8() {
} }
#[test] #[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn applied_tag_nothing_ir() { fn applied_tag_nothing_ir() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -49,7 +49,7 @@ fn applied_tag_nothing_ir() {
} }
#[test] #[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn applied_tag_nothing() { fn applied_tag_nothing() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -69,7 +69,7 @@ fn applied_tag_nothing() {
} }
#[test] #[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn applied_tag_just() { fn applied_tag_just() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -88,7 +88,7 @@ fn applied_tag_just() {
} }
#[test] #[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn applied_tag_just_ir() { fn applied_tag_just_ir() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(