We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a84e5a commit 2639074Copy full SHA for 2639074
test/gtest/type-domains.cpp
@@ -725,7 +725,7 @@ fuzztest::Domain<TypePlan> AvailableType(TypeBuilderPlan plan) {
725
726
fuzztest::Domain<TypePlan> AvailableSubType(TypeBuilderPlan plan,
727
TypePlan super) {
728
- if (auto* type = super.getNonRef()) {
+ if (super.getNonRef()) {
729
// No subtyping among non-ref types.
730
return fuzztest::Just(super);
731
} else if (auto* ref = super.getRef()) {
@@ -1046,7 +1046,7 @@ std::vector<HeapType> BuildHeapTypes(TypeBuilderPlan plan) {
1046
;
1047
}
1048
assert(built);
1049
- return std::move(*built);
+ return *built;
1050
1051
1052
auto ArbitraryDefinedHeapTypesAndPlan() {
0 commit comments