Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJecmen committed May 17, 2022
1 parent 913ac11 commit 89e0981
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rir/src/compiler/pir/promise.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Promise : public Code {

void printName(std::ostream& out) const override;

bool isPromise() const override { return true; }
bool isPromise() const override final { return true; }

private:
rir::Code* rirSrc_;
Expand Down
11 changes: 6 additions & 5 deletions rir/src/compiler/rir2pir/rir2pir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ bool Rir2Pir::compileBC(const BC& bc, Opcode* pos, Opcode* nextPos,
}

return true;
} // namespace pir
}

bool Rir2Pir::tryCompileContinuation(Builder& insert, Opcode* start,
const std::vector<PirType>& initialStack) {
Expand Down Expand Up @@ -1586,13 +1586,14 @@ Value* Rir2Pir::tryTranslate(rir::Code* srcCode, Builder& insert, Opcode* start,
// stvar
{
auto n = pc;
for (int i = 0; i < 2 && n < end; ++i, n = BC::next(n))
;
if (n < end) {
for (int i = 0; i < 2 && n < end; ++i, n = BC::next(n)) {
auto nextbc = BC::decodeShallow(n);
if (nextbc.bc == Opcode::stvar_)
if (nextbc.bc == Opcode::stvar_ ||
nextbc.bc == Opcode::stvar_cached_) {
inner << ">"
<< CHAR(PRINTNAME(nextbc.immediateConst()));
break;
}
}
}
inner << "@";
Expand Down

0 comments on commit 89e0981

Please sign in to comment.