diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-15 12:53:38 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-15 12:53:38 +0000 |
commit | a03f2a77f8ef84aa8339a3da51400792f61804d3 (patch) | |
tree | b1c899b797f84b2ff689b72cd34f972698cf8eeb /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | f3b5943ffca79a3c8ef5c7734e6c7df6b8a75a53 (diff) | |
download | bcm5719-llvm-a03f2a77f8ef84aa8339a3da51400792f61804d3.tar.gz bcm5719-llvm-a03f2a77f8ef84aa8339a3da51400792f61804d3.zip |
[llvm-mca] Fix PR38575: Avoid an invalid implicit truncation of a processor resource mask (an uint64_t value) to unsigned.
This patch fixes a regression introduced at revision 338702.
A processor resource mask was incorrectly implicitly truncated to an unsigned
quantity. Later on, the truncated mask was used to initialize an element of a
vector of processor resource descriptors.
On targets with more than 32 processor resources, some elements of the vector
are left uninitialized. As a consequence, this bug might have eventually caused
a crash due to null dereference in the Scheduler.
This patch fixes PR38575, and adds a test for it.
llvm-svn: 339768
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions