summaryrefslogtreecommitdiff
path: root/src/wasm/wat-parser.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-10-31 13:08:29 -0700
committerGitHub <noreply@github.com>2022-10-31 13:08:29 -0700
commit91ecf5088944de356b514641d99051244c20eec4 (patch)
treeeca4c7ebd39aeb403f9b5500d4b4596a5f759079 /src/wasm/wat-parser.cpp
parente5a1499b8eeac217d9354dbe3bb8098ef643165a (diff)
downloadbinaryen-91ecf5088944de356b514641d99051244c20eec4.tar.gz
binaryen-91ecf5088944de356b514641d99051244c20eec4.tar.bz2
binaryen-91ecf5088944de356b514641d99051244c20eec4.zip
Work around some gcc 10.x issues (#5199)
See #5188
Diffstat (limited to 'src/wasm/wat-parser.cpp')
-rw-r--r--src/wasm/wat-parser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp
index abcff8c43..1c1349e47 100644
--- a/src/wasm/wat-parser.cpp
+++ b/src/wasm/wat-parser.cpp
@@ -177,7 +177,7 @@ struct ParseInput {
}
}
}
- return {};
+ return std::nullopt;
}
std::optional<uint32_t> takeAlign() {
@@ -209,7 +209,7 @@ struct ParseInput {
return n;
}
}
- return {};
+ return std::nullopt;
}
std::optional<int64_t> takeS64() {
@@ -239,7 +239,7 @@ struct ParseInput {
return n;
}
}
- return {};
+ return std::nullopt;
}
std::optional<int32_t> takeS32() {
@@ -281,7 +281,7 @@ struct ParseInput {
return d;
}
}
- return {};
+ return std::nullopt;
}
std::optional<float> takeF32() {
@@ -291,7 +291,7 @@ struct ParseInput {
return f;
}
}
- return {};
+ return std::nullopt;
}
std::optional<std::string_view> takeString() {