Revision
1067
Author
vincent.isambart@gmail.com
Date
2009-03-22 15:12:02 -0700 (Sun, 22 Mar 2009)

Log Message

fixed the return value of if

Modified Paths

Diff

Modified: MacRuby/branches/experimental/roxor.cpp (1066 => 1067)


--- MacRuby/branches/experimental/roxor.cpp	2009-03-22 21:48:59 UTC (rev 1066)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-22 22:12:02 UTC (rev 1067)
@@ -2722,7 +2722,7 @@
 
 		bb = thenBB;
 		DEBUG_LEVEL_INC();
-		Value *thenVal = node->nd_body != NULL ? compile_node(node->nd_body) : trueVal;
+		Value *thenVal = node->nd_body != NULL ? compile_node(node->nd_body) : nilVal;
 		DEBUG_LEVEL_DEC();
 		thenBB = bb;
 		BranchInst::Create(mergeBB, thenBB);