Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 afl (2.52b-5.lnd.1) unstable; urgency=medium
 .
   * changer llvm version for loongarch.
Author: Jianjun Han <hanjianjun@loongson.cn>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2021-01-20

--- afl-2.52b.orig/afl-gcc.c
+++ afl-2.52b/afl-gcc.c
@@ -129,10 +129,10 @@ static void edit_params(u32 argc, char**
 
     if (!strcmp(name, "afl-clang++")) {
       u8* alt_cxx = getenv("AFL_CXX");
-      cc_params[0] = alt_cxx ? alt_cxx : (u8*)"clang++-6.0";
+      cc_params[0] = alt_cxx ? alt_cxx : (u8*)"clang++-8";
     } else {
       u8* alt_cc = getenv("AFL_CC");
-      cc_params[0] = alt_cc ? alt_cc : (u8*)"clang-6.0";
+      cc_params[0] = alt_cc ? alt_cc : (u8*)"clang-8";
     }
 
   } else {
--- afl-2.52b.orig/llvm_mode/Makefile
+++ afl-2.52b/llvm_mode/Makefile
@@ -22,7 +22,7 @@ BIN_PATH     = $(PREFIX)/bin
 
 VERSION     = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
 
-LLVM_CONFIG ?= llvm-config-6.0
+LLVM_CONFIG ?= llvm-config-8
 
 CFLAGS      ?= -O3 -funroll-loops
 CFLAGS      += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign \
@@ -50,8 +50,8 @@ endif
 # probably better.
 
 ifeq "$(origin CC)" "default"
-  CC         = clang-6.0
-  CXX        = clang++-6.0
+  CC         = clang-8
+  CXX        = clang++-8
 endif
 
 ifndef AFL_TRACE_PC
--- afl-2.52b.orig/llvm_mode/afl-clang-fast.c
+++ afl-2.52b/llvm_mode/afl-clang-fast.c
@@ -106,10 +106,10 @@ static void edit_params(u32 argc, char**
 
   if (!strcmp(name, "afl-clang-fast++")) {
     u8* alt_cxx = getenv("AFL_CXX");
-    cc_params[0] = alt_cxx ? alt_cxx : (u8*)"clang++-6.0";
+    cc_params[0] = alt_cxx ? alt_cxx : (u8*)"clang++-8";
   } else {
     u8* alt_cc = getenv("AFL_CC");
-    cc_params[0] = alt_cc ? alt_cc : (u8*)"clang-6.0";
+    cc_params[0] = alt_cc ? alt_cc : (u8*)"clang-8";
   }
 
   /* There are two ways to compile afl-clang-fast. In the traditional mode, we
