diff --git a/llvm/include/llvm/Passes/CodeGenPassBuilder.h b/llvm/include/llvm/Passes/CodeGenPassBuilder.h index 81c00a3a95c113..3cc39b54ba758d 100644 --- a/llvm/include/llvm/Passes/CodeGenPassBuilder.h +++ b/llvm/include/llvm/Passes/CodeGenPassBuilder.h @@ -610,13 +610,11 @@ Error CodeGenPassBuilder::verifyStartStop( if (!Started) return make_error( - "Can't find start pass \"" + - PIC->getPassNameForClassName(Info.StartPass) + "\".", + "Can't find start pass \"" + Info.StartPass + "\".", std::make_error_code(std::errc::invalid_argument)); if (!Stopped) return make_error( - "Can't find stop pass \"" + - PIC->getPassNameForClassName(Info.StopPass) + "\".", + "Can't find stop pass \"" + Info.StopPass + "\".", std::make_error_code(std::errc::invalid_argument)); return Error::success(); }