<div dir="ltr">Drive by comment: maybe you want something like<div><br></div><div>if (sizeof(T) == 4)</div><div> TORC4.Insert(ArgXor, Arg1, Arg2);</div><div>else if sizeof(T) == 8)</div><div> TORC8.Insert(ArgXor, Arg1, Arg2);</div><div><br></div><div>in TracePC::HandleCmp?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 5:22 PM, Kostya Serebryany via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: kcc<br>
Date: Wed Oct 26 19:22:39 2016<br>
New Revision: 285259<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=285259&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=285259&view=rev</a><br>
Log:<br>
[libFuzzer] speculatively trying to fix the Mac build<br>
<br>
Modified:<br>
llvm/trunk/lib/Fuzzer/<wbr>FuzzerTracePC.h<br>
<br>
Modified: llvm/trunk/lib/Fuzzer/<wbr>FuzzerTracePC.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.h?rev=285259&r1=285258&r2=285259&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/Fuzzer/<wbr>FuzzerTracePC.h?rev=285259&r1=<wbr>285258&r2=285259&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Fuzzer/<wbr>FuzzerTracePC.h (original)<br>
+++ llvm/trunk/lib/Fuzzer/<wbr>FuzzerTracePC.h Wed Oct 26 19:22:39 2016<br>
@@ -111,7 +111,7 @@ private:<br>
// Do nothing, too small to be interesting.<br>
}<br>
void TORCInsert(size_t Idx, uint16_t Arg1, uint16_t Arg2) {<br>
- // Do nothing, these don't usually hapen.<br>
+ // Do nothing, these don't usually happen.<br>
}<br>
void TORCInsert(size_t Idx, uint32_t Arg1, uint32_t Arg2) {<br>
TORC4.Insert(Idx, Arg1, Arg2);<br>
@@ -119,6 +119,9 @@ private:<br>
void TORCInsert(size_t Idx, uint64_t Arg1, uint64_t Arg2) {<br>
TORC8.Insert(Idx, Arg1, Arg2);<br>
}<br>
+ void TORCInsert(size_t Idx, uintptr_t Arg1, uintptr_t Arg2) {<br>
+ TORC8.Insert(Idx, Arg1, Arg2);<br>
+ }<br>
<br>
static const size_t kNumPCs = 1 << 24;<br>
uintptr_t PCs[kNumPCs];<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- <div>Peter</div></div></div>
</div>