[PATCH] D131109: [clang][dataflow][NFC] Fix outdated comment on getStableStorageLocation
Eric Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 3 13:19:04 PDT 2022
li.zhe.hua created this revision.
li.zhe.hua added a reviewer: sgatev.
Herald added subscribers: martong, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
li.zhe.hua requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Follow-up to D129097 <https://reviews.llvm.org/D129097>.
It is no longer a requirement that the `QualType` passed to to
`DataflowAnalysisContext::getStableStorageLocation()` is not null. A
null type pass as an argument is only applicable as the pointee type
of a `std::nullptr_t` pointer.
rG LLVM Github Monorepo
@@ -93,9 +93,7 @@
/// Returns a new storage location appropriate for `Type`.
- /// Requirements:
- /// `Type` must not be null.
+ /// A null `Type` is interpreted as the pointee type of `std::nullptr_t`.
StorageLocation &createStorageLocation(QualType Type);
/// Returns a stable storage location for `D`.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 627 bytes
Desc: not available
More information about the cfe-commits