================
@@ -2953,7 +2960,7 @@ class TypeTraitExpr final
}
const APValue &getAPValue() const {
- assert(!isValueDependent() && !TypeTraitExprBits.IsBooleanTypeTrait);
+ assert(!TypeTraitExprBits.IsBooleanTypeTrait);
----------------
Tsche wrote:
The failure came from PCHGenerator, which for a header with dependent strong
ordering trait calls ASTWriter, which then causes the assertion failure in
`getAPValue`.
Instead of weakening the assert I've special-cased it in ASTWriter now to
produce a fresh default constructed APValue if it's dependent.
https://github.com/llvm/llvm-project/pull/216462
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits