From: Eli Friedman Date: Fri, 8 Jul 2011 20:07:05 +0000 (+0000) Subject: Fix dangling pointer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6043548bfea3939534948969763a2b13c448f068;p=oota-llvm.git Fix dangling pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134725 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 8da8ab91331..d9c3b84d6c2 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -1153,7 +1153,7 @@ void AsmMatcherInfo::BuildInfo() { assert(FeatureNo < 32 && "Too many subtarget features!"); } - StringRef CommentDelimiter = AsmParser->getValueAsString("CommentDelimiter"); + std::string CommentDelimiter = AsmParser->getValueAsString("CommentDelimiter"); // Parse the instructions; we need to do this first so that we can gather the // singleton register classes.