Fixes a crash when converting the instructions.ll test to opaque
pointers.
if (!ptrType)
return emitOpError("indirect call expects a pointer as callee: ")
<< ptrType;
+
+ if (ptrType.isOpaque())
+ return success();
+
fnType = ptrType.getElementType();
} else {
Operation *callee =
; CHECK-LABEL: @call_fn_ptr
; CHECK-SAME: %[[PTR:[a-zA-Z0-9]+]]
-define void @call_fn_ptr(void (i16) *%fn) {
+define void @call_fn_ptr(ptr %fn) {
; CHECK: %[[C0:[0-9]+]] = llvm.mlir.constant(0 : i16) : i16
; CHECK: llvm.call %[[PTR]](%[[C0]])
call void %fn(i16 0)