diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-08-27 01:07:37 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-08-27 01:07:37 +0000 |
| commit | 25abd0ebddc21e4452bbbb401c335979d5a45c42 (patch) | |
| tree | 657f6236b97ba280ce9b51c84e3a0d36de534876 /lldb/packages/Python/lldbsuite/test/expression_command/dollar-in-variable | |
| parent | f3f00b2e5ec110386bc6729a97559a8521857577 (diff) | |
| download | bcm5719-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/expression_command/dollar-in-variable')
0 files changed, 0 insertions, 0 deletions

