Files
clang-p2996/clang/docs
Shafik Yaghmour 2bd8aeea7e [Clang] Fix unconditional access to Attr pointer when checking if _Nullable is applicable to a type
In TransformAttributedType(...) when checking if _Nullable can be applied to a
type it dereferences TL.getAttr() unconditionally which we can see from the code
earlier in the function is not correct since it is expected to be nullptr in
some cases.

It looks like the correct course of action is to use TL.getModifiedLoc() over
TL.getAttr()->getLocation() in the case that TL.getAttr() returns a nullptr.

Fixes: https://github.com/llvm/llvm-project/issues/60344

Differential Revision: https://reviews.llvm.org/D142799
2023-01-30 13:28:29 -08:00
..
2022-11-30 07:52:59 -05:00
2022-09-06 09:52:22 -04:00
2022-11-30 09:37:49 -05:00
2022-08-24 22:41:38 +00:00
2022-06-26 19:22:52 +05:30
2022-09-16 07:19:30 -04:00