diff gen/toir.cpp @ 610:1b62222581fb

Change bool type to i8
author Christian Kamm <kamm incasoftware de>
date Sat, 20 Sep 2008 10:13:15 +0200
parents e235b80c92bc
children 83ca663ecc20
line wrap: on
line diff
--- a/gen/toir.cpp	Fri Sep 19 21:45:05 2008 +0200
+++ b/gen/toir.cpp	Sat Sep 20 10:13:15 2008 +0200
@@ -1649,7 +1649,7 @@
 
     LLValue* b = DtoBoolean(loc, u);
 
-    LLConstant* zero = DtoConstBool(false);
+    LLConstant* zero = llvm::ConstantInt::get(b->getType(), 0);
     b = p->ir->CreateICmpEQ(b,zero);
 
     return new DImValue(type, b);