Skip to content

Commit 740d067

Browse files
PappasBrentxlauko
authored andcommitted
hl: make getFunctionType() return empty type.
- Change getFunctionType() overloads to return an empty type instead of an empty option
1 parent 2303d3a commit 740d067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vast/Dialect/HighLevel/HighLevelTypes.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace vast::hl
7777
if (auto ty = type.dyn_cast< TypedefType >())
7878
return getFunctionType(getTypedefType(ty, mod), mod);
7979

80-
VAST_UNIMPLEMENTED_MSG("unknown type to extract function type");
80+
return {};
8181
}
8282

8383
core::FunctionType getFunctionType(Value callee) {
@@ -102,7 +102,7 @@ namespace vast::hl
102102
return getFunctionType(value.getType(), mod);
103103
}
104104

105-
VAST_UNIMPLEMENTED_MSG("unknown callee type");
105+
return {};
106106
}
107107

108108

0 commit comments

Comments
 (0)