summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-08-27 01:07:37 +0000
committerCraig Topper <craig.topper@intel.com>2019-08-27 01:07:37 +0000
commit25abd0ebddc21e4452bbbb401c335979d5a45c42 (patch)
tree657f6236b97ba280ce9b51c84e3a0d36de534876 /lldb/packages/Python/lldbsuite/test
parentf3f00b2e5ec110386bc6729a97559a8521857577 (diff)
downloadbcm5719-llvm-25abd0ebddc21e4452bbbb401c335979d5a45c42.tar.gz
bcm5719-llvm-25abd0ebddc21e4452bbbb401c335979d5a45c42.zip
[Analysis] In EmitGEPOffset, use Constant::getUniqueInteger to handle struct indices in vector GEPs.
We previously called getSplatValue if the index had a vector type, but getSplatValue returns null for non-splats. This would cause a nullptr dereference if it wasn't a splat. Using getUniqueInteger gives us an assert if its a vector type, but the value isn't a splat. This is what is used in SelectionDAGBuilder's code that expands GEPs as well. llvm-svn: 370001
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud