OSDN Git Service

Fix undefined behaviour in PPCInstPrinter::printBranchOperand.
authorSean Fertile <sfertile@ca.ibm.com>
Tue, 12 Feb 2019 20:03:04 +0000 (20:03 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Tue, 12 Feb 2019 20:03:04 +0000 (20:03 +0000)
commit638090e32fa4c18e1251e265e2b16d990ff96e28
treeba676890c8412a341296d773ede47bbea0c883f3
parent02f8fc49ff4ad5f37a0bd7ad4264e7fb98745b99
Fix undefined behaviour in PPCInstPrinter::printBranchOperand.

Fix the undefined behaviour introduced by my previous patch r353865 (left
shifting a potentially negative value), which was caught by the bots that run
UBSan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp