[llvm] r344717 - [TI removal] Use `Instruction` instead of `TerminatorInst` for
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 17 17:39:18 PDT 2018
Author: chandlerc
Date: Wed Oct 17 17:39:18 2018
New Revision: 344717
URL: http://llvm.org/viewvc/llvm-project?rev=344717&view=rev
Log:
[TI removal] Use `Instruction` instead of `TerminatorInst` for
a variable's type.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=344717&r1=344716&r2=344717&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Wed Oct 17 17:39:18 2018
@@ -2183,7 +2183,7 @@ void llvm::removeUnwindEdge(BasicBlock *
return;
}
- TerminatorInst *NewTI;
+ Instruction *NewTI;
BasicBlock *UnwindDest;
if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) {
@@ -2260,7 +2260,7 @@ bool llvm::removeUnreachableBlocks(Funct
continue;
}
if (DTU) {
- // Remove the TerminatorInst of BB to clear the successor list of BB.
+ // Remove the terminator of BB to clear the successor list of BB.
if (BB->getTerminator())
BB->getInstList().pop_back();
new UnreachableInst(BB->getContext(), BB);
More information about the llvm-commits
mailing list