diff options
Diffstat (limited to 'llvm/tools/llvm-reduce')
-rw-r--r-- | llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp b/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp index f9e6b913614..03c3962d2fd 100644 --- a/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp @@ -51,7 +51,7 @@ static void replaceBranchTerminator(BasicBlock &BB, if (IsBranch) BranchInst::Create(ChunkSucessors[0], &BB); - if (auto IndBI = dyn_cast<IndirectBrInst>(Term)) { + if (Address) { auto NewIndBI = IndirectBrInst::Create(Address, ChunkSucessors.size(), &BB); for (auto Dest : ChunkSucessors) |