From: David Blaikie <dblaikie@gmail.com> Date: Thu, 19 Sep 2019 20:04:04 +0000 (+0000) Subject: llvm-reduce: Follow-up to 372280, now with more-better msan fixing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72bcb2596eae8589ce4882554cf3d33ad8194782;p=llvm llvm-reduce: Follow-up to 372280, now with more-better msan fixing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp b/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp index f9e6b913614..03c3962d2fd 100644 --- a/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp +++ b/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)