[llvm] 49ad3f6 - One more bugpoitn fix for GCC5

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 18:42:20 PST 2020


Author: Benjamin Kramer
Date: 2020-01-29T03:42:02+01:00
New Revision: 49ad3f6143227ac5f4d0e061b564b65d63bd0363

URL: https://github.com/llvm/llvm-project/commit/49ad3f6143227ac5f4d0e061b564b65d63bd0363
DIFF: https://github.com/llvm/llvm-project/commit/49ad3f6143227ac5f4d0e061b564b65d63bd0363.diff

LOG: One more bugpoitn fix for GCC5

Added: 
    

Modified: 
    llvm/tools/bugpoint/CrashDebugger.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp
index 417d24673cca..962873ea6da1 100644
--- a/llvm/tools/bugpoint/CrashDebugger.cpp
+++ b/llvm/tools/bugpoint/CrashDebugger.cpp
@@ -500,7 +500,7 @@ bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock *> &BBs) {
 
   for (BasicBlock *BB : Blocks)
     BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
-                           BB->getName());
+                           std::string(BB->getName()));
 
   SmallVector<BasicBlock *, 16> ToProcess;
   for (auto &F : *M) {
@@ -608,7 +608,7 @@ bool ReduceCrashingConditionals::TestBlocks(
 
   for (const BasicBlock *BB : Blocks)
     BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
-                           BB->getName());
+                           std::string(BB->getName()));
 
   SmallVector<BasicBlock *, 16> ToProcess;
   for (auto &F : *M) {
@@ -699,7 +699,7 @@ bool ReduceSimplifyCFG::TestBlocks(std::vector<const BasicBlock *> &BBs) {
 
   for (const BasicBlock *BB : Blocks)
     BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
-                           BB->getName());
+                           std::string(BB->getName()));
 
   // Loop over and delete any hack up any blocks that are not listed...
   for (auto &F : *M)


        


More information about the llvm-commits mailing list