diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-01-01 17:30:05 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-01-01 18:53:12 -0800 |
commit | dac98a22052eac66295ce443eed20e21bf37d28d (patch) | |
tree | 860ca95f767269ad0d8ff0d2973df63064c310e0 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
parent | 2fcf7691dfb470e57a940e3a045695515fb44e13 (diff) | |
download | bcm5719-llvm-dac98a22052eac66295ce443eed20e21bf37d28d.tar.gz bcm5719-llvm-dac98a22052eac66295ce443eed20e21bf37d28d.zip |
[RegisterClassInfo] Use SmallVector::assign instead of resize to make sure we erase previous contents from all entries of the vector.
resize only writes to elements that get added. Any elements that
already existed maintain their previous value. In this case we're
trying to erase cached information so we should use assign which
will write to every element.
Found while trying to add new tests to an existing X86 test and
noticed register allocation changing in other functions.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions