Skip to content

Commit

Permalink
[NFC] Add some const annotations (#6203)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Jan 5, 2024
1 parent d312604 commit bdafd11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit bdafd11

Please sign in to comment.