Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Converting from float to bool breaks code generation #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
echo "float32 f; if (f);" | crack -                                             

What is the expected output? nothing
What do you see instead?
crack: /home/mmuller/pkg/llvm-2.7/include/llvm/Instructions.h:635: 
llvm::ICmpInst::ICmpInst(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, 
const llvm::Twine&): Assertion `(getOperand(0)->getType()->isIntOrIntVectorTy() 
|| getOperand(0)->getType()->isPointerTy()) && "Invalid operand types for ICmp 
instruction"' failed.

Original issue reported on code.google.com by mind...@gmail.com on 31 Jul 2010 at 8:29

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 31 Jul 2010 at 8:29

GoogleCodeExporter commented 9 years ago
fixed in 3860da5bd26c

Original comment by weyrick on 10 Aug 2010 at 4:19