Skip to content

Commit 795f187

Browse files
committed
Moved parts of const handling to v2 nodes
1 parent c4a884a commit 795f187

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+782
-769
lines changed

cilly/src/bin/linker/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ fn main() {
339339
MethodKind::Constructor,
340340
vec![].into(),
341341
);
342-
let arg0 = cilly::cil_node::CILNode::V2(asm.alloc_node(CILNode::LdArg(0)));
342+
let arg0 = cilly::cil_node::V1Node::V2(asm.alloc_node(CILNode::LdArg(0)));
343343
MethodImpl::MethodBody {
344344
blocks: vec![cilly::BasicBlock::from_v1(
345345
&cilly::basic_block::BasicBlock::new(
346346
vec![cilly::cil_root::CILRoot::Throw(
347-
cilly::cil_node::CILNode::NewObj(Box::new(
347+
cilly::cil_node::V1Node::NewObj(Box::new(
348348
cilly::cil_node::CallOpArgs {
349349
args: Box::new([conv_usize!(arg0)]),
350350
site: asm.alloc_methodref(exception_ctor),

0 commit comments

Comments
 (0)