mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 23:51:26 +00:00
[IR] Replace isa<TerminatorInst> with isTerminator().
This is a bit awkward in a handful of places where we didn't even have an instruction and now we have to see if we can build one. But on the whole, this seems like a win and at worst a reasonable cost for removing `TerminatorInst`. All of this is part of the removal of `TerminatorInst` from the `Instruction` type hierarchy. llvm-svn: 340701
This commit is contained in:
1 parent
d38d9505d1
commit
9ae926b973
39 files changed
+64
-57
No files matched your search
@@ -4620,7 +4620,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
|
||||
CurBB->getInstList().push_back(I);
|
||||
|
||||
// If this was a terminator instruction, move to the next block.
|
||||
if (isa<TerminatorInst>(I)) {
|
||||
if (I->isTerminator()) {
|
||||
++CurBBNo;
|
||||
CurBB = CurBBNo < FunctionBBs.size() ? FunctionBBs[CurBBNo] : nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user