Use ConstantData exclusively for inserting data into the constant pool
Previously we allowed anything that could be converted into ConstantData (e.g. a Vec).
This commit is contained in:
@@ -470,7 +470,7 @@ fn gen_transform<'a>(
|
||||
for (name, value) in transform.const_pool.iter() {
|
||||
fmtln!(
|
||||
fmt,
|
||||
"let {} = pos.func.dfg.constants.insert(vec!{:?});",
|
||||
"let {} = pos.func.dfg.constants.insert(vec!{:?}.into());",
|
||||
name,
|
||||
value
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user