summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-26 00:15:15 +0000
committerZachary Turner <zturner@google.com>2017-05-26 00:15:15 +0000
commitf5cdd40f89dddb29b36c44c33695e358416e6b95 (patch)
treeaa94abafc98b282113f790b87ac759603a639a54 /llvm/lib/CodeGen
parent1d60987fd357154de2a9e318f4a65ba9888bdf25 (diff)
downloadbcm5719-llvm-f5cdd40f89dddb29b36c44c33695e358416e6b95.tar.gz
bcm5719-llvm-f5cdd40f89dddb29b36c44c33695e358416e6b95.zip
[llvm-pdbdump] Don't crash when displaying padding.
We have a lot of complicated logic to determine where padding is in a record, and the debug info doesn't always provide enough information to figure it out with laser precision. In this case we were putting the padding in the wrong place causing an out of bounds access on a BitVector. Right now we decide that any trailing padding of a child type will be truncated during record layout, but this is only true insofar as the class still is sized properly to end on an alignment boundary, which the algorithm doesn't yet know about. For now, just don't crash, even though we display padding twice in this case. llvm-svn: 303946
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud