Timm =?utf-8?q?Bäder?= <[email protected]>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69223/[email protected]>
================
@@ -295,7 +295,7 @@ class Pointer {
bool isUnion() const;
/// Checks if the storage is extern.
- bool isExtern() const { return Pointee->isExtern(); }
+ bool isExtern() const { return Pointee && Pointee->isExtern(); }
----------------
tbaederr wrote:
Kinda, we already care in several places, but I think when interpreting we end
up checking `isZero()` or `isLive()` before calling any other `Pointer` API.
https://github.com/llvm/llvm-project/pull/69223
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits