diff options
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r-- | build2/algorithm.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index 6743907..7e68a36 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -439,6 +439,8 @@ namespace build2 const rule_match* r (match_impl (a, t, nullptr, try_match)); + assert (l.offset != target::offset_tried); // Should have failed. + if (r == nullptr) // Not found (try_match == true). { l.offset = target::offset_tried; |