Skip to content

Commit 8e59fe2

Browse files
committed
[FastISel] Correctly report prototype on miss
The type of a function is nowadays just an opaque pointer, which is not helpful when analyzing FastISel misses. Instead print the actual function type of the function. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D147716
1 parent e17c1bb commit 8e59fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
14491449
Fn.getSubprogram(),
14501450
&Fn.getEntryBlock());
14511451
R << "FastISel didn't lower all arguments: "
1452-
<< ore::NV("Prototype", Fn.getType());
1452+
<< ore::NV("Prototype", Fn.getFunctionType());
14531453
reportFastISelFailure(*MF, *ORE, R, EnableFastISelAbort > 1);
14541454

14551455
// Use SelectionDAG argument lowering

0 commit comments

Comments
 (0)