<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 21, 2012, at 12:17 PM, Lyu Mitnick wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello all,<br><br>I noticed <a href="http://nondot.org/sabre/LLVMNotes/EliminatingVoid.txt">Eliminating the 'void' type</a> in Random LLVM notes. I am wondering to know what's the <br>meaning of "eliminating" the void type. Is it means the goal is deleting VoidTyID from TypeID<br>
enumeration in Type.h? And what Type::getVoidTy() returned is a pointer to a {}?<br></blockquote></div><br><div>The general concept is to replace void with {}. Void is a weird type in that it is only allowed as the return value of functions and as the type of instructions like store. It seems better (though also not particularly high priority) to eliminate it to make the type system more consistent.</div><div><br></div><div>-Chris</div></body></html>