diff options
Diffstat (limited to 'src/tools/fuzzing/fuzzing.cpp')
-rw-r--r-- | src/tools/fuzzing/fuzzing.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp index 73aff5acb..45cfbde0f 100644 --- a/src/tools/fuzzing/fuzzing.cpp +++ b/src/tools/fuzzing/fuzzing.cpp @@ -263,6 +263,11 @@ void TranslateToFuzzReader::setupHeapTypes() { // non-nullable bottom heap type). if (!type.isBottom() && !type.isBasic()) { interestingHeapTypes.push_back(type); + if (oneIn(2)) { + // Add a name for this type. + wasm.typeNames[type].name = + "generated_type$" + std::to_string(interestingHeapTypes.size()); + } } } } |