[libFuzzer] fix a compiler warning
authorKostya Serebryany <kcc@google.com>
Wed, 10 May 2017 23:59:03 +0000 (23:59 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 10 May 2017 23:59:03 +0000 (23:59 +0000)
llvm-svn: 302747

llvm/lib/Fuzzer/FuzzerMutate.cpp

index cd846c7..a84e6ee 100644 (file)
@@ -217,7 +217,8 @@ DictionaryEntry MutationDispatcher::MakeDictionaryEntryFromCMP(
     size_t NumPositions = 0;
     for (const uint8_t *Cur = Data;
          Cur < End && NumPositions < kMaxNumPositions; Cur++) {
-      Cur = (uint8_t *)SearchMemory(Cur, End - Cur, ExistingBytes, ArgSize);
+      Cur =
+          (const uint8_t *)SearchMemory(Cur, End - Cur, ExistingBytes, ArgSize);
       if (!Cur) break;
       Positions[NumPositions++] = Cur - Data;
     }