[llvm] r344566 - Change a TerminatorInst* to an Instruction* in HotColdSplitting.cpp.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 15 15:27:04 PDT 2018
Author: lhames
Date: Mon Oct 15 15:27:03 2018
New Revision: 344566
URL: http://llvm.org/viewvc/llvm-project?rev=344566&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Transforms/IPO/HotColdSplitting.cpp
Modified: llvm/trunk/lib/Transforms/IPO/HotColdSplitting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/HotColdSplitting.cpp?rev=344566&r1=344565&r2=344566&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/HotColdSplitting.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/HotColdSplitting.cpp Mon Oct 15 15:27:03 2018
@@ -150,7 +150,7 @@ static bool unlikelyExecuted(const Basic
}
static bool returnsOrHasSideEffects(const BasicBlock &BB) {
- const TerminatorInst *I = BB.getTerminator();
+ const Instruction *I = BB.getTerminator();
if (isa<ReturnInst>(I) || isa<IndirectBrInst>(I) || isa<InvokeInst>(I))
return true;
More information about the llvm-commits
mailing list