From 8f9a2446e0272b4661bca3d0a593348132365dba Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 15 Oct 2018 22:27:03 +0000 Subject: [PATCH] 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 --- llvm/lib/Transforms/IPO/HotColdSplitting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/HotColdSplitting.cpp b/llvm/lib/Transforms/IPO/HotColdSplitting.cpp index fcea40d..be4da24 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(I) || isa(I) || isa(I)) return true; -- 2.7.4