We distinguish between the referent location for ReferenceValue and pointee location for PointerValue. The former must be non-empty but the latter may be empty in the case of a nullptr
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
On a high level, what's wrong with having getPointeeLoc members with different return types in ReferenceValue and PointerValue?
Comment Actions
Modified renaming: getPointeeLoc of ReferenceValue is modified to getReferentLoc, getPointeeLoc remains unchanged for PointerValue
Comment Actions
IMO, it would be nice to distinguish the type of Value we are working on.
As per Dmitri's suggestion, I updated the patch so that getPointeeLoc of ReferenceValue is now renamed to getReferentLoc, getPointeeLoc is remains the same for PointerValue.