[PowerPC] Remove wild call to RegScavenger::initRegState().
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 2 Dec 2015 21:25:28 +0000 (21:25 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 2 Dec 2015 21:25:28 +0000 (21:25 +0000)
commitdae9c830298e187bf984ce338d9961ac5c55e6e0
treeaf8d18c1fae677818eb9682744192563d635d3ec
parent9343bd9aff1ce501c26cb3d111bc868731ca0d96
[PowerPC] Remove wild call to RegScavenger::initRegState().

This call should in fact be made by RegScavenger::enterBasicBlock()
called below. The first call does nothing except for triggering UB,
indicated by UBSan (passing nullptr to memset()).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254548 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RegisterScavenging.h
lib/Target/PowerPC/PPCFrameLowering.cpp