diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/lib/Passes/PassBuilder.cpp @@ -519,7 +519,7 @@ // Helper to check if the current compilation phase is preparing for LTO static bool isLTOPreLink(ThinOrFullLTOPhase Phase) { return Phase == ThinOrFullLTOPhase::ThinLTOPreLink || - Phase == ThinOrFullLTOPhase::ThinLTOPreLink; + Phase == ThinOrFullLTOPhase::FullLTOPreLink; } // TODO: Investigate the cost/benefit of tail call elimination on debugging.