I think the attached patch will do the trick.<div><br></div><div>Thanks,</div><div>Preston</div><div><br><br><div class="gmail_quote">On Thu, Oct 11, 2012 at 1:42 AM, Sebastian Pop <span dir="ltr"><<a href="mailto:spop@codeaurora.org" target="_blank">spop@codeaurora.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Oct 11, 2012 at 3:18 AM, Sebastian Pop <<a href="mailto:spop@codeaurora.org">spop@codeaurora.org</a>> wrote:<br>

> On Thu, Oct 11, 2012 at 2:59 AM, Bill Wendling <<a href="mailto:wendling@apple.com">wendling@apple.com</a>> wrote:<br>
>> Hi Sebastian,<br>
>><br>
>> I'm getting this warning. Could you fix it please?<br>
>><br>
>> /Volumes/Sandbox/llvm/llvm-clean.src/lib/Analysis/DependenceAnalysis.cpp:1164:32: warning: implicit truncation from 'int' to bitfield changes value from -5 to 3<br>
>>       [-Wconstant-conversion]<br>
>>     Result.DV[Level].Direction &= ~Dependence::DVEntry::GT;<br>
>>                                ^  ~~~~~~~~~~~~~~~~~~~~~~~~<br>
>> /Volumes/Sandbox/llvm/llvm-clean.src/lib/Analysis/DependenceAnalysis.cpp:1226:34: warning: implicit truncation from 'int' to bitfield changes value from -5 to 3<br>
>>       [-Wconstant-conversion]<br>
>>       Result.DV[Level].Direction &= ~Dependence::DVEntry::GT;<br>
>>                                  ^  ~~~~~~~~~~~~~~~~~~~~~~~~<br>
><br>
> I haven't seen this warning in my test: I was building with GCC.<br>
> Preston, is this change ok with you?<br>
><br>
<br>
</div>My change wouldn't fit, as there are arrays indexed by the direction<br>
and they expect it to be a value less than 8.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,<br>
hosted by The Linux Foundation<br>
</div></div></blockquote></div><br></div>