diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1449,7 +1449,7 @@ Fn.getSubprogram(), &Fn.getEntryBlock()); R << "FastISel didn't lower all arguments: " - << ore::NV("Prototype", Fn.getType()); + << ore::NV("Prototype", Fn.getFunctionType()); reportFastISelFailure(*MF, *ORE, R, EnableFastISelAbort > 1); // Use SelectionDAG argument lowering