Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 365:bfb9d28f045a trunk
[svn r386] Fixed broken DtoBoolean.
Some code cleanup.
author | lindquist |
---|---|
date | Tue, 15 Jul 2008 00:17:03 +0200 |
parents | 44daf304421c |
children | 83ade4f4025a |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Mon Jul 14 22:48:03 2008 +0200 +++ b/gen/llvmhelpers.h Tue Jul 15 00:17:03 2008 +0200 @@ -98,4 +98,7 @@ */ DValue* DtoCallDFunc(FuncDeclaration* fdecl, Array* arguments, TypeClass* type=0, LLValue* thismem=0); +/// Converts any value to a boolean (llvm i1) +LLValue* DtoBoolean(DValue* dval); + #endif