<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>The following assertion is tripping when I do LLVMABIAlignmentOfType on a function type:<br></div><div dir="ltr"><br></div><div dir="ltr">#4  0x0000000005b67fc4 in llvm::DataLayout::getAlignment (this=0xa0bb960, Ty=0xa0bee58, <br>    abi_or_pref=true) at /home/andy/downloads/llvm_release_70/lib/IR/DataLayout.cpp:672<br>672      assert(Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!");</div><div dir="ltr"><br></div><div dir="ltr">(gdb) p Ty->dump()<br>void ()<br></div><div><br></div><div>Shouldn't this type be sized? Is this a bug?</div><div><br></div><div>As a workaround, I have to assume that all functions are only 1-byte aligned, but that doesn't seem sound. Is it possible to find out the ABI alignment of a function?</div><div><br></div><div>Regards,</div><div>Andrew<br></div></div></div></div>