From 6f63ae0e3e9af059c7cac3d3a29e4fb34b0b0e28 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Aug 2010 18:23:42 +0000 Subject: Fix boolean compilation. git-svn-id: http://svn.drobilla.net/resp/resp@266 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/llvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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* blit = dynamic_cast*>(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"); } -- cgit v1.2.1