diff --git a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h index bd7496a799c579..048b97c34ee2ae 100644 --- a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h +++ b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h @@ -134,6 +134,7 @@ class PseudoProbeManager { F.hasFnAttribute("profile-checksum-mismatch")) && "In post-link, profile checksum matching state doesn't match " "function 'profile-checksum-mismatch' attribute."); + (void)LTOPhase; // The desc for import function is unavailable. Check the function attribute // for mismatch. return (!Desc && !F.hasFnAttribute("profile-checksum-mismatch")) || diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.h b/llvm/lib/Target/RISCV/RISCVISelLowering.h index c11b1464757c7f..ace5b3fd2b95b4 100644 --- a/llvm/lib/Target/RISCV/RISCVISelLowering.h +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.h @@ -1000,7 +1000,7 @@ class RISCVTargetLowering : public TargetLowering { /// RISC-V doesn't have flags so it's better to perform the and/or in a GPR. bool shouldNormalizeToSelectSequence(LLVMContext &, EVT) const override { return false; - }; + } /// For available scheduling models FDIV + two independent FMULs are much /// faster than two FDIVs.