Skip to content

Commit

Permalink
libnixf/Sema: fix const correctness for VLA (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc authored Apr 9, 2024
1 parent 4ad2d87 commit bd52a54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libnixf/include/nixf/Sema/VariableLookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ class VariableLookupAnalysis {

void runOnAST(const Node &Root);

LookupResult query(const ExprVar &Var) { return Results.at(&Var); }
[[nodiscard]] LookupResult query(const ExprVar &Var) const {
return Results.at(&Var);
}
};

} // namespace nixf

0 comments on commit bd52a54

Please sign in to comment.