From: Keno Fischer Date: Fri, 6 Nov 2015 00:45:47 +0000 (+0000) Subject: Fix bugpoint breakage on libcxx introduced by r252247 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ccae723cd407a1794e331046f22c76822ee7fd06;p=oota-llvm.git Fix bugpoint breakage on libcxx introduced by r252247 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index 4b6e6df1028..91bf033ac9c 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -828,8 +828,8 @@ static bool DebugACrash(BugDriver &BD, // contribute to the crash, bisect the operands of the remaining ones std::vector 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); } }