================
@@ -168,6 +197,8 @@ class FactManager {
public:
FactID newFact(std::unique_ptr<FactEntry> Entry) {
Facts.push_back(std::move(Entry));
+ assert(Facts.size() - 1 <= std::numeric_limits<unsigned short>::max() &&
----------------
aaronpuchert wrote:
```suggestion
assert(Facts.size() - 1 <= std::numeric_limits<FactID>::max() &&
```
https://github.com/llvm/llvm-project/pull/137133
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits