[llvm-commits] [llvm] r134725 - /llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Jul 8 13:07:05 PDT 2011
Author: efriedma
Date: Fri Jul 8 15:07:05 2011
New Revision: 134725
URL: http://llvm.org/viewvc/llvm-project?rev=134725&view=rev
Log:
Fix dangling pointer.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=134725&r1=134724&r2=134725&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Fri Jul 8 15:07:05 2011
@@ -1153,7 +1153,7 @@
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.
More information about the llvm-commits
mailing list