diff options
author | David Robillard <d@drobilla.net> | 2010-08-22 18:23:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-08-22 18:23:42 +0000 |
commit | 6f63ae0e3e9af059c7cac3d3a29e4fb34b0b0e28 (patch) | |
tree | d3164aea3016b8ffba95ce7ed337b83dc1c36384 | |
parent | 4861eb2317df37c83415debf65480249002f4180 (diff) | |
download | resp-6f63ae0e3e9af059c7cac3d3a29e4fb34b0b0e28.tar.gz resp-6f63ae0e3e9af059c7cac3d3a29e4fb34b0b0e28.tar.bz2 resp-6f63ae0e3e9af059c7cac3d3a29e4fb34b0b0e28.zip |
Fix boolean compilation.
git-svn-id: http://svn.drobilla.net/resp/resp@266 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r-- | src/llvm.cpp | 2 |
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"); } |