forked from M-Labs/nac3
1
0
Fork 0

codegen/expr: fixed warnings

This commit is contained in:
pca006132 2021-08-21 15:10:50 +08:00
parent 957ceb74e4
commit c4d6b3691a
1 changed files with 1 additions and 2 deletions

View File

@ -258,7 +258,6 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
}
ExprKind::Name { id, .. } => {
let ptr = self.var_assignment.get(id).unwrap();
let primitives = &self.primitives;
self.builder.build_load(*ptr, "load")
}
ExprKind::List { elts, .. } => {
@ -539,7 +538,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
}
}
ExprKind::Subscript { value, slice, .. } => {
if let TypeEnum::TList { ty } = &*self.unifier.get_ty(value.custom.unwrap()) {
if let TypeEnum::TList { .. } = &*self.unifier.get_ty(value.custom.unwrap()) {
if let ExprKind::Slice { .. } = slice.node {
unimplemented!()
} else {