aboutsummaryrefslogtreecommitdiffstats
path: root/ast.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-06-27 08:42:30 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-06-27 08:42:30 -0400
commit69d136281d0a0d7cd36a091a8a8d10f6b2473754 (patch)
treea4af5c118af92edb19854045b0bdd60df63ff4c1 /ast.cpp
parent0d8932e96934dbeb0f1e21872693ca833a64341f (diff)
switch target to x86-64
Diffstat (limited to 'ast.cpp')
-rw-r--r--ast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.cpp b/ast.cpp
index 6aaa8a0..f6e6074 100644
--- a/ast.cpp
+++ b/ast.cpp
@@ -36,7 +36,7 @@ static inline auto storeEnv(LLVMState& llvmState, llvm::Value *index, llvm::Valu
{
auto ptrty = llvmState.inttype->getPointerTo();
auto var = llvmState.builder.CreateGEP(ptrty, scope.back().env, {index});
- return llvmState.builder.CreateStore(val, var, false);
+ return llvmState.builder.CreateStore(val, var);
}
NumberAST::NumberAST(const std::string& n): BaseAST(n) {}
@@ -132,7 +132,7 @@ llvm::Value *CallAST::codegen(LLVMState& llvmState) const
if (!v.native) {
auto index = llvm::ConstantInt::get(llvmState.inttype, i++);
auto m = llvmState.builder.CreateGEP(ptrty, mem, {index});
- llvmState.builder.CreateStore(loadEnv(llvmState, v.value), m, false);
+ llvmState.builder.CreateStore(loadEnv(llvmState, v.value), m);
}
}