[clang] [clang] Check null TypeSourceInfo in CreateUnaryExprOrTypeTraitExpr (PR #112111)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 07:54:28 PDT 2024


================
@@ -683,6 +683,9 @@ New features
 Crash and bug fixes
 ^^^^^^^^^^^^^^^^^^^
 
+- Check for a null ``TypeSourceInfo *`` when creating a ``UnaryExprOrTypeTraitExpr``.
+  Fixes (#GH111594)
+
----------------
Sirraide wrote:

The release note is in the wrong place; I’m pretty sure this is the static analyser section. It should instead be in the ‘bug fixes to C++ support’ or a similar section above. 

Also, users of Clang will have no idea what a TypeSourceInfo or UnaryExprOrTypeTraitExpr is supposed to be; it’s better to give a more concrete example (e.g. ‘fixed a crash when the type of the operand to `sizeof` is invalid’ or sth like that).

https://github.com/llvm/llvm-project/pull/112111


More information about the cfe-commits mailing list