Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rapiz1 committed Nov 3, 2021
1 parent 45ae287 commit ab1991e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions visitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ void CodeGenVisitor::visit(VarDecl* st) {
if (st->type.isArray) {
size = llvm::Constant::getIntegerValue(l.getInt(),
llvm::APInt(32, st->type.arraySize));
type = type->getArrayElementType();
}

llvm::AllocaInst* addr = nullptr;
Expand Down

0 comments on commit ab1991e

Please sign in to comment.