From: Jakub Staszak Date: Wed, 13 Nov 2013 20:09:11 +0000 (+0000) Subject: Use StringRef instead of std::string X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a305ffb65becc1031abbf85e70aec8fb3c337986;p=oota-llvm.git Use StringRef instead of std::string git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LoopUnroll.cpp b/lib/Transforms/Utils/LoopUnroll.cpp index 0b679fe7e61..9955bfd6264 100644 --- a/lib/Transforms/Utils/LoopUnroll.cpp +++ b/lib/Transforms/Utils/LoopUnroll.cpp @@ -90,7 +90,7 @@ static BasicBlock *FoldBlockIntoPredecessor(BasicBlock *BB, LoopInfo* LI, // Move all definitions in the successor to the predecessor... OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); - std::string OldName = BB->getName(); + StringRef OldName = BB->getName(); // Erase basic block from the function...