aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index 7039a97..8e3ea50 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -311,7 +311,7 @@ LLVMEngine::compileLiteral(CEnv& cenv, const AST* lit)
const ALiteral<bool>* blit = dynamic_cast<const ALiteral<bool>*>(lit);
if (blit)
- return ConstantFP::get(Type::getFloatTy(context), blit->val);
+ return ConstantInt::get(Type::getInt1Ty(context), blit->val);
throw Error(lit->loc, "Unknown literal type");
}