<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Malloc call codegen was using ConstantExpr::getSizeOf() to determine the size of a type, when it should have been using Type-> getPrimitiveSizeInBits().  Fixed that.  <span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">isArrayMalloc()<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">now correctly identifies array mallocs.</span></span><div><br></div><div>I also reorganized the InsertBefore vs. InsertAtEnd code in <span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">createMalloc() </span>for clarity.</div><div><br></div><div></div></body></html>