Skip to content

Commit 2a826b7

Browse files
PappasBrentxlauko
authored andcommitted
hl: Return empty type instead of crashing.
- Change getTypedefType() to return an empty type instead of crashing vast if it fails.
1 parent 289c3e3 commit 2a826b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vast/Dialect/HighLevel/HighLevelTypes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace vast::hl
5757
}
5858
}
5959

60-
VAST_FATAL("unknown typedef name");
60+
return {};
6161
}
6262

6363
auto name_of_record(mlir_type t) -> std::optional< std::string >

0 commit comments

Comments
 (0)