summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-10-05 21:20:00 +0000
committerLang Hames <lhames@gmail.com>2016-10-05 21:20:00 +0000
commita5e873e2a1c079028ffc3e4aaa36a1decf204ed0 (patch)
treecf357d2726977e17fbcd8cf32ddc3d213f78ef1f /llvm/lib/CodeGen/AsmPrinter
parenta01bccdbe613f5e65fa8da2fb07d6b9b66d203bf (diff)
downloadbcm5719-llvm-a5e873e2a1c079028ffc3e4aaa36a1decf204ed0.tar.gz
bcm5719-llvm-a5e873e2a1c079028ffc3e4aaa36a1decf204ed0.zip
[Object] Fix a crash in Archive::child_iterator's default constructor.
To be default constructible, Archive::child_iterator needs to be able to construct an Archive::Child with a null parent, however Archive::Child's constructor always dereferenced its Parent argument to compute the remaining archive size. This commit fixes Archive::Child's constructor to only do the size calculation when the parent is non-null. llvm-svn: 283387
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud