summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r--src/tools/fuzzing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index f055d7f44..c0f6ab335 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -271,6 +271,10 @@ private:
// Make something with no chance of infinite recursion.
Expression* makeTrivial(Type type);
+ // We must note when we are nested in a makeTrivial() call. When we are, all
+ // operations must try to be as trivial as possible.
+ int trivialNesting = 0;
+
// Specific expression creators
Expression* makeBlock(Type type);
Expression* makeLoop(Type type);