From ccae723cd407a1794e331046f22c76822ee7fd06 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Fri, 6 Nov 2015 00:45:47 +0000 Subject: [PATCH] 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 --- tools/bugpoint/CrashDebugger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.34.1