diff --git a/llvm/tools/sancov/sancov.cpp b/llvm/tools/sancov/sancov.cpp --- a/llvm/tools/sancov/sancov.cpp +++ b/llvm/tools/sancov/sancov.cpp @@ -694,7 +694,7 @@ Triple TheTriple) { if (TheTriple.isARM()) return (PC - 3) & (~1); - if (TheTriple.isMIPS()) + if (TheTriple.isMIPS() || TheTriple.isSPARC()) return PC - 8; if (TheTriple.isRISCV()) return PC - 2;