This patch precedes a future patch to make PointeeLoc for PointerValue possibly empty (for nullptr), by using a pointer instead of a reference type.
ReferenceValue should maintain a non-empty PointeeLoc reference.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Rename function as suggested
clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp | ||
---|---|---|
63 | The assertion was to ensure that the values were either both Reference or both Pointer, as an IndirectionValue could be either. |
clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp | ||
---|---|---|
63 | Ah I see, the cast now plays the role of the assert. |
WDYT about "areEquivalentIndirectionValues"?