Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/literal.h
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ class Literals : public SmallVector<Literal, 1> {
}
Literals(size_t initialSize) : SmallVector(initialSize) {}

Type getType() {
Type getType() const {
if (empty()) {
return Type::none;
}
Expand All @@ -711,8 +711,8 @@ class Literals : public SmallVector<Literal, 1> {
}
return Type(types);
}
bool isNone() { return size() == 0; }
bool isConcrete() { return size() != 0; }
bool isNone() const { return size() == 0; }
bool isConcrete() const { return size() != 0; }
};

std::ostream& operator<<(std::ostream& o, wasm::Literal literal);
Expand Down
2 changes: 1 addition & 1 deletion src/wasm-interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Flow {
return builder.makeConstantExpression(values);
}

bool breaking() { return breakTo.is(); }
bool breaking() const { return breakTo.is(); }

void clearIf(Name target) {
if (breakTo == target) {
Expand Down