<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 12, 2008, at 11:58 PM, Zhongxing Xu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">Author: zhongxingxu<br>Date: Thu Nov 13 01:58:20 2008<br>New Revision: 59232<br><br>URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project?rev=59232&view=rev">http://llvm.org/viewvc/llvm-project?rev=59232&view=rev</a><br>Log:<br>Lift the pointer to alloca'ed region to the pointer to its first element.<br>This is required by some operations, e.g., *p = 1; p[0] = 1;.<br>Also set the AllocaRegion's type during the cast.<br><br>+        // Set the AllocaRegion's type.<br>+        const_cast<AllocaRegion*>(AR)->setType(T);</span></blockquote></div><br><div>Hi Zhongxing,</div><div><br></div><div>I don't think this is the way to go.  MemRegions must be immutable.  Moreover, this reasoning should not go in GRExprEngine.</div><div><br></div><div>Ted</div></body></html>