[llvm] [CodeGen][NewPM] Improve start/stop pass error message CodeGenPassBuilder (PR #102591)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 03:12:03 PDT 2024


================
@@ -609,14 +609,12 @@ Error CodeGenPassBuilder<Derived, TargetMachineT>::verifyStartStop(
     return Error::success();
 
   if (!Started)
-    return make_error<StringError>(
-        "Can't find start pass \"" +
-            PIC->getPassNameForClassName(Info.StartPass) + "\".",
-        std::make_error_code(std::errc::invalid_argument));
+    return make_error < StringError >
+               "Can't find start pass \"" + Info.StartPass + "\".",
+           std::make_error_code(std::errc::invalid_argument);
----------------
paperchalice wrote:

Missing Parentheses here.

https://github.com/llvm/llvm-project/pull/102591


More information about the llvm-commits mailing list