From 9ae926b973e42633f7bc7db39b33241dbb9f2158 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 26 Aug 2018 09:51:22 +0000 Subject: [IR] Replace `isa` 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 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 48a959707339..11bc6db8ba19 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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(I)) { + if (I->isTerminator()) { ++CurBBNo; CurBB = CurBBNo < FunctionBBs.size() ? FunctionBBs[CurBBNo] : nullptr; } -- cgit v1.2.3