]> granicus.if.org Git - llvm/commitdiff
llvm-reduce: Follow-up to 372280, now with more-better msan fixing
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 19 Sep 2019 20:04:04 +0000 (20:04 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 19 Sep 2019 20:04:04 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372349 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp

index f9e6b9136148350c30bef107ebdfc4dbf4a6b0fd..03c3962d2fd9daa51b29948c4fb6daca3b80fc3b 100644 (file)
@@ -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)