summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/CoverageMappingReader.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-10-31 21:30:59 +0000
committerJason Molenda <jmolenda@apple.com>2014-10-31 21:30:59 +0000
commitfca26da4460130992daaa8adfe4f74aed0c75815 (patch)
tree174ca4fd73dbf0305cb090b9618f11eaefebba35 /llvm/lib/ProfileData/CoverageMappingReader.cpp
parenta6556f7295de22fd600d566a057e127f6147287c (diff)
downloadbcm5719-llvm-fca26da4460130992daaa8adfe4f74aed0c75815.tar.gz
bcm5719-llvm-fca26da4460130992daaa8adfe4f74aed0c75815.zip
SBAddress currently *may* have an Address object or it may not.
If it has an Address object, it is assumed to be Valid. Change SBAddress to always have an Address object and check whether it is valid or not in those case. This is fixing a subtle problem where we ended up with a SBAddress with an Address of LLDB_INVALID_ADDRESS could run through a copy constructor and turn into an SBAddress with no Address object being backed (because it wasn't distinguishing between invalid-Address versus no-Address.) The cost of an Address object is not high and this will be an easy mistake for someone else to make; I'm fixing SBAddress so it doesn't come up again. <rdar://problem/18069407> llvm-svn: 221002
Diffstat (limited to 'llvm/lib/ProfileData/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud