aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/name.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/name.cxx')
-rw-r--r--libbuild2/name.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/name.cxx b/libbuild2/name.cxx
index 06bf9b9..6a33a63 100644
--- a/libbuild2/name.cxx
+++ b/libbuild2/name.cxx
@@ -34,6 +34,8 @@ namespace build2
string
to_string (const name& n)
{
+ assert (!n.pattern);
+
string r;
// Note: similar to to_stream() below.