Skip to content

Commit

Permalink
Assert setupModuleSearchPaths called before any other queries
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Jun 18, 2024
1 parent d5a4aa2 commit e40f4cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/lib/parsing/parsing-queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ void setupModuleSearchPaths(
const std::vector<std::string>& prependStandardModulePaths,
const std::vector<std::string>& cmdLinePaths,
const std::vector<std::string>& inputFilenames) {
CHPL_ASSERT(
context->numQueriesRunThisRevision() == 0 &&
"setupModuleSearchPaths should be called before any queries are run");

std::string modRoot;
if (!minimalModules) {
Expand Down

0 comments on commit e40f4cc

Please sign in to comment.