Enable the static analyser from clang-tidy.

Fix a false positive.  The loops in the pagemap accessor are too
complicated for the static analyser to check, so it doesn't spot that a
non-null return is impossible.
This commit is contained in:
David Chisnall
2019-04-29 15:47:55 +01:00
parent d06e539732
commit 49ece8f4e1
3 changed files with 11 additions and 1 deletions

View File

@@ -281,6 +281,7 @@ namespace snmalloc
for (; ix < last; ix++)
{
SNMALLOC_ASSUME(leaf_ix.first != nullptr);
leaf_ix.first->values[ix] = x;
}