summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-10-15 22:27:03 +0000
committerLang Hames <lhames@gmail.com>2018-10-15 22:27:03 +0000
commit8f9a2446e0272b4661bca3d0a593348132365dba (patch)
tree34c4c6466ea78385e98f54b8a51970e8e7287f5d /llvm/lib/Transforms/IPO/HotColdSplitting.cpp
parent6e66b2a6a397028c0e48dff978c2e2b313c9f42d (diff)
downloadbcm5719-llvm-8f9a2446e0272b4661bca3d0a593348132365dba.tar.gz
bcm5719-llvm-8f9a2446e0272b4661bca3d0a593348132365dba.zip
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. llvm-svn: 344566
Diffstat (limited to 'llvm/lib/Transforms/IPO/HotColdSplitting.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/HotColdSplitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/HotColdSplitting.cpp b/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
index fcea40dffd7..be4da249955 100644
--- a/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
+++ b/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
@@ -150,7 +150,7 @@ static bool unlikelyExecuted(const BasicBlock &BB) {
}
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;
OpenPOWER on IntegriCloud