summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing/fuzzing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing/fuzzing.cpp')
-rw-r--r--src/tools/fuzzing/fuzzing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index 6e728d3a6..c4c47ee23 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -1067,7 +1067,7 @@ Expression* TranslateToFuzzReader::_makeunreachable() {
Expression* TranslateToFuzzReader::makeTrivial(Type type) {
if (type.isConcrete()) {
- if (oneIn(2)) {
+ if (oneIn(2) && funcContext) {
return makeLocalGet(type);
} else {
return makeConst(type);