summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-08-15 12:53:38 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-08-15 12:53:38 +0000
commita03f2a77f8ef84aa8339a3da51400792f61804d3 (patch)
treeb1c899b797f84b2ff689b72cd34f972698cf8eeb /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parentf3b5943ffca79a3c8ef5c7734e6c7df6b8a75a53 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud