Fix bugpoint breakage on libcxx introduced by r252247
authorKeno Fischer <kfischer@college.harvard.edu>
Fri, 6 Nov 2015 00:45:47 +0000 (00:45 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Fri, 6 Nov 2015 00:45:47 +0000 (00:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252253 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/CrashDebugger.cpp

index 4b6e6df102839d7cd691800d07cef34164dcec16..91bf033ac9c159e2600bda41006e994ef4393815 100644 (file)
@@ -828,8 +828,8 @@ static bool DebugACrash(BugDriver &BD,
       // contribute to the crash, bisect the operands of the remaining ones
       std::vector<const MDNode *> NamedMDOps;
       for (auto &NamedMD : BD.getProgram()->named_metadata())
-        NamedMDOps.insert(NamedMDOps.end(), NamedMD.op_begin(),
-                          NamedMD.op_end());
+        for (auto op : NamedMD.operands())
+          NamedMDOps.push_back(op);
       ReduceCrashingNamedMDOps(BD, TestFn).reduceList(NamedMDOps, Error);
     }
   }