summaryrefslogtreecommitdiff
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-25 10:41:29 -0400
committerBrad King <brad.king@kitware.com>2018-09-26 06:32:21 -0400
commit6c2af9d302f1c893219f2aad014a2b183bb438a1 (patch)
treed149591d480e74ed76e22588b11bf92009842fcb /Source/cmListFileCache.h
parent22aa6b67b41808bb9c27aeb0f8f662cd81466843 (diff)
downloadcmake-6c2af9d302f1c893219f2aad014a2b183bb438a1.tar.gz
cmListFileCache: Add missing assertion in backtrace Top method
We can only get the top of a stack that has at least one call. Update the method's comment accordingly.
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index 2c91f7ab09..faddec7bea 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -144,7 +144,7 @@ public:
cmListFileBacktrace Pop() const;
// Get the context at the top of the backtrace.
- // Returns an empty context if the backtrace is empty.
+ // This may be called only if Empty() would return false.
cmListFileContext const& Top() const;
// Print the top of the backtrace.