OSDN Git Service

Change a TerminatorInst* to an Instruction* in HotColdSplitting.cpp.
authorLang Hames <lhames@gmail.com>
Mon, 15 Oct 2018 22:27:03 +0000 (22:27 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 15 Oct 2018 22:27:03 +0000 (22:27 +0000)
commit6712561e1900fcf553d66bb73f90759319ef17f8
treeee72e2250e84b84984ae93dd56363a4ccb5a813f
parent52ff03cff907cf240f95cbcbbec5e0f3b43c76b0
Change a TerminatorInst* to an Instruction* in HotColdSplitting.cpp.

r344558 added an assignment to a TerminatorInst* from
BasicBlock::getTerminatorInst(), but BasicBlock::getTerminatorInst() returns an
Instruction* rather than a TerminatorInst* since r344504 so this fails to
compile.

Changing the variable to an Instruction* should get the bots building again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344566 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/HotColdSplitting.cpp