<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 19, 2011, at 8:19 PM, Nick Lewycky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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: 0px; font-size: medium; ">Author: nicholas<br>Date: Tue Apr 19 22:19:42 2011<br>New Revision: 129845<br><br>URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project?rev=129845&view=rev">http://llvm.org/viewvc/llvm-project?rev=129845&view=rev</a><br>Log:<br>This should always be signed chars, so use int8_t. This fixes a miscompile when<br>llvm is built with unsigned chars where an immediate such as 0xff would be zero<br>extended to 64-bits, turning "cmp $0xff,%eax" into<br>"cmp $0xffffffffffffffff,%eax".</span></blockquote></div><br><div>Nice catch, thanks!</div><div><br></div><div>-Chris</div></body></html>