diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-29 03:11:00 +0100 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-29 03:11:00 +0100 |
| commit | cd87e207ec7c1d6ea38bf05b8a4e887a1940f37f (patch) | |
| tree | f4ef99cc83dccbf2bebd1bb3deb96df65c2dd310 /llvm/tools/bugpoint/CrashDebugger.cpp | |
| parent | bd31243a34da8a045c642ddc77b27b0a45a9bf1e (diff) | |
Make bugpoint work with gcc5 again.
Diffstat (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index 73ff1dc11a07..2a94e3d2897b 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -499,7 +499,8 @@ bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock *> &BBs) { std::vector<std::pair<std::string, std::string>> BlockInfo; for (BasicBlock *BB : Blocks) - BlockInfo.emplace_back(BB->getParent()->getName(), BB->getName()); + BlockInfo.emplace_back(std::string(BB->getParent()->getName()), + BB->getName()); SmallVector<BasicBlock *, 16> ToProcess; for (auto &F : *M) { |
