[LLVMdev] "Value has wrong type!" on Bool:4 bitfield

Jay Foad
Thu, 07 Jan 2010 14:40:42 -0000

> cc1plus:
/home/foad/svn/antix/toolchain/branches/w/foad/2757llvm26/toolchain/llvm/llvm-gcc/gcc/llvm-convert.cpp:999:
> llvm::Value* TreeToLLVM::Emit(tree_node*, const MemRef*): Assertion
> `(Result == 0 || (((enum tree_code)
> (((exp)->common.type))->common.code) == VOID_TYPE) ||
> isa<VectorType>(ConvertType(((exp)->common.type))) ||
> Result->getType() == ConvertType(((exp)->common.type))) &&
"Value has
> wrong type!"' failed.

I see that this was addressed here:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090831/086426.html

Sorry for the noise again!

Jay.